Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 3c797b3

Browse files
author
rngus2344
committed
add trigger when reset Ai results
1 parent 7be617e commit 3c797b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/javascripts/discourse/components/ai-full-page-search.gjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ export default class AiFullPageSearch extends Component {
142142
this.AiResults = [];
143143
this.showingAiResults = false;
144144
this.args.addSearchResults([], "topic_id");
145+
this.appEvents.trigger("full-page-search:ai-results-toggled", {
146+
enabled: false,
147+
});
145148
}
146149

147150
performHyDESearch() {

0 commit comments

Comments
 (0)