diff --git a/app/assets/javascripts/discourse/widgets/search-menu.js.es6 b/app/assets/javascripts/discourse/widgets/search-menu.js.es6 index ac0ea6a68c2..aa2a45c4a79 100644 --- a/app/assets/javascripts/discourse/widgets/search-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/search-menu.js.es6 @@ -69,6 +69,8 @@ const SearchHelper = { if (searchContext && searchContext.type === 'topic') { widget.appEvents.trigger('post-stream:refresh', { force: true }); searchData.topicId = searchContext.id; + } else { + searchData.topicId = null; } }).finally(() => { searchData.loading = false;