Skip to content

Commit

Permalink
Merge pull request alerta#248 from alerta/fix-searchbox-clear
Browse files Browse the repository at this point in the history
Fix clearing of searchbox
  • Loading branch information
satterly committed Sep 21, 2019
2 parents ae73755 + 93928b6 commit dba76c7
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
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
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 dba76c7

Please sign in to comment.