Skip to content

Commit

Permalink
Fix clearing of searchbox
Browse files Browse the repository at this point in the history
  • Loading branch information
satterly committed Sep 21, 2019
1 parent ae73755 commit 93928b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ export default {
},
clearSearch() {
this.query = null
this.$store.dispatch('alerts/updateQuery', null)
this.$store.dispatch('alerts/updateQuery', {})
this.$router.push({
query: { ...this.$router.query, q: undefined },
hash: this.$store.getters['alerts/getHash']
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/alerts.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const state = {
showPanel: false,

// query, filter and pagination
query: '', // URLSearchParams
query: {}, // URLSearchParams
filter: {
environment: null,
text: null,
Expand Down

0 comments on commit 93928b6

Please sign in to comment.