Fix race condition.

It takes time for the emit function to actually fire.
This commit is contained in:
FireMasterK 2021-04-07 16:51:49 +05:30
parent 8cf8fc8048
commit f00e663f10

View file

@ -64,7 +64,7 @@ export default {
this.setSelected(i);
this.$router.push({
name: "SearchResults",
query: { search_query: this.searchText }
query: { search_query: this.searchSuggestions[i] }
});
},
setSelected(val) {