mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
search: update only if an actual value
This commit is contained in:
parent
e76f707868
commit
d1173b9694
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ export default {
|
|||
window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
watch: {
|
||||
"$route.query.search_query": function() {
|
||||
this.updateResults();
|
||||
"$route.query.search_query": function(q) {
|
||||
if (q) this.updateResults();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue