fix: Course search pill not cleared when text deleted. (#37709)

* fix: Course search pill not cleared when text deleted

* chore: fix spacing

Co-authored-by: Feanil Patel <feanil@axim.org>

---------

Co-authored-by: Feanil Patel <feanil@axim.org>
This commit is contained in:
Asespinel
2025-12-03 11:28:49 -05:00
committed by GitHub
parent 6f391d93b9
commit 957e254a0a

View File

@@ -30,8 +30,11 @@
}
listing = new CoursesListing({model: courseListingModel});
dispatcher.listenTo(form, 'search', function(query) {
dispatcher.listenTo(form, "search", function (query) {
form.showLoadingIndicator();
if (!query || query.trim() === "") {
filters.remove("search_query");
}
search.performSearch(query, filters.getTerms());
});