Fix JS tests take 2.

This commit is contained in:
Guo Xiang Tan 2018-05-07 18:34:45 +08:00
parent 0042d94f76
commit 5e45b682a2
1 changed files with 2 additions and 0 deletions

View File

@ -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;