mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 02:08:21 +00:00
Merge pull request #3420 from grittypuffy/fix-search
fix: Infinite loading when search query is empty
This commit is contained in:
commit
1059a5967b
@ -113,7 +113,7 @@ pnpm install
|
||||
### Compiles and hot-reloads for development
|
||||
|
||||
```
|
||||
pnpm serve
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
You can now make changes and view then in realtime!
|
||||
|
@ -200,10 +200,14 @@ export default {
|
||||
},
|
||||
submitSearch(e) {
|
||||
e.target.blur();
|
||||
this.$router.push({
|
||||
name: "SearchResults",
|
||||
query: { search_query: this.searchText },
|
||||
});
|
||||
if (this.searchText) {
|
||||
this.$router.push({
|
||||
name: "SearchResults",
|
||||
query: { search_query: this.searchText },
|
||||
});
|
||||
} else {
|
||||
this.$router.push("/");
|
||||
}
|
||||
return;
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user