A platform for community discussion. Free, open, simple.
DEV: fix clear deprecation for search history (#41848)
Kris72af2b7f497a
diff --git a/frontend/discourse/app/components/search-menu/results/recent-searches.gjs b/frontend/discourse/app/components/search-menu/results/recent-searches.gjsindex 6fd62147bf1..b6db75e2eec 100644--- a/frontend/discourse/app/components/search-menu/results/recent-searches.gjs+++ b/frontend/discourse/app/components/search-menu/results/recent-searches.gjs@@ -26,7 +26,7 @@ export default class RecentSearches extends Component {async clearRecent() {const result = await User.resetRecentSearches();if (result.success) {- this.currentUser.recent_searches.clear();+ this.currentUser.set("recent_searches", []);}}