Skip to content

Commit

Permalink
Merge pull request #3093 from Jarsen136/issue-3092
Browse files Browse the repository at this point in the history
fix: remove search query from url when empty
prachi00 authored Jun 3, 2022
2 parents d96d65c + ca4ac45 commit acc5c26
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/rmrk/Gallery/Search/SearchBar.vue
Original file line number Diff line number Diff line change
@@ -663,7 +663,7 @@ export default class SearchBar extends mixins(
query: {
page: '1',
...this.$route.query,
search: this.searchQuery,
search: this.searchQuery || undefined,
[key]: value,
[key2]: value2,
},
2 changes: 1 addition & 1 deletion components/rmrk/Gallery/Search/SearchBarCollection.vue
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ export default class SearchBar extends mixins(KeyboardEventsMixin) {
path: String(this.$route.path),
query: {
...this.$route.query,
search: this.searchQuery,
search: this.searchQuery || undefined,
[key]: value,
},
})

0 comments on commit acc5c26

Please sign in to comment.