Fix: Infinite loading due to empty string in search query

This commit is contained in:
grittypuffy 2024-02-23 12:38:47 +05:30
parent b27d4b6c4a
commit 051b7b22de

View file

@ -200,10 +200,14 @@ export default {
},
submitSearch(e) {
e.target.blur();
if (this.searchText) {
this.$router.push({
name: "SearchResults",
query: { search_query: this.searchText },
});
} else {
this.$router.push("/");
}
return;
},
},