Skip to content

Commit

Permalink
fix: no completion query if input is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel committed Nov 6, 2024
1 parent 8b34dd3 commit eaedc2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/mixins/suggestions-ctl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export const SearchaliciousTermsMixin = <T extends Constructor<LitElement>>(
q: string,
taxonomyNames: string[]
): Promise<TaxomiesTermsResponse> {
if (!q) {
return Promise.resolve({options: []});
}
this.isTermsLoading = true;
// get the version of the terms for each taxonomy
const version = this.incrementVersion();
Expand Down

0 comments on commit eaedc2e

Please sign in to comment.