Skip to content

Commit

Permalink
Fixed refresh on explore route not displaying the search string on th…
Browse files Browse the repository at this point in the history
…e navbar
  • Loading branch information
fabiogatti committed Nov 23, 2022
1 parent 8c0573a commit 765a339
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export default class Search extends mixins(
this.initKeyboardEventHandler({
f: this.bindFilterEvents,
})
if (!this.name && this.$route.query.search) {
this.name = Array.isArray(this.$route.query.search)
? ''
: this.$route.query.search
}
}
public mounted(): void {
Expand Down

0 comments on commit 765a339

Please sign in to comment.