diff --git a/src/App.vue b/src/App.vue index 90858e9af..f6d83580d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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'] diff --git a/src/store/modules/alerts.store.ts b/src/store/modules/alerts.store.ts index f37a15f38..3f4d76031 100644 --- a/src/store/modules/alerts.store.ts +++ b/src/store/modules/alerts.store.ts @@ -37,7 +37,7 @@ const state = { showPanel: false, // query, filter and pagination - query: '', // URLSearchParams + query: {}, // URLSearchParams filter: { environment: null, text: null,