1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

search: update only if an actual value

This commit is contained in:
FireMasterK 2021-01-23 22:30:52 +05:30
parent e76f707868
commit d1173b9694
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -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: {