Skip to content
Snippets Groups Projects
Commit 4554d862 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

do not run the search if no source is selected

parent 852cea70
No related branches found
No related tags found
1 merge request!1157do not run the search if no source is selected
......@@ -190,7 +190,7 @@ export default {
},
async search () {
// Run the actual search
if (!this.isValid() || this.loading) return
if (!this.isValid() || !this.sources.length || this.loading) return
this.loading = true
try {
const payload = this.parsedQuery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment