diff --git a/assets/javascripts/discourse/connectors/full-page-search-below-search-header/semantic-search.gjs b/assets/javascripts/discourse/connectors/full-page-search-below-search-header/semantic-search.gjs index e3936b9c..80366158 100644 --- a/assets/javascripts/discourse/connectors/full-page-search-below-search-header/semantic-search.gjs +++ b/assets/javascripts/discourse/connectors/full-page-search-below-search-header/semantic-search.gjs @@ -124,7 +124,7 @@ export default class SemanticSearch extends Component { this.preventAISearch = false; } - if (this.initialSearchTerm) { + if (this.initialSearchTerm && !this.searching) { return this.performHyDESearch(); } @@ -132,7 +132,9 @@ export default class SemanticSearch extends Component { withPluginApi("1.15.0", (api) => { api.onAppEvent("full-page-search:trigger-search", () => { - return this.performHyDESearch(); + if (!this.searching) { + return this.performHyDESearch(); + } }); }); }