From 93928b671b111aa978c6e6cb60dd19f9d723ffae Mon Sep 17 00:00:00 2001 From: Nick Satterly Date: Sat, 21 Sep 2019 23:51:34 +0200 Subject: [PATCH] Fix clearing of searchbox --- src/App.vue | 2 +- src/store/modules/alerts.store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,