From 36ed1651c9b95296a1e3c26014836873bea224f3 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 6 Apr 2020 10:17:00 +0900 Subject: [PATCH] Fix filter initial state, resolves #530 --- frontend/components/containers/annotation/FilterButton.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/containers/annotation/FilterButton.vue b/frontend/components/containers/annotation/FilterButton.vue index 8145cb4a..2e59f46e 100644 --- a/frontend/components/containers/annotation/FilterButton.vue +++ b/frontend/components/containers/annotation/FilterButton.vue @@ -59,7 +59,6 @@ export default { watch: { selected() { - this.initSearchOptions() this.updateSearchOptions({ isChecked: this.items[this.selected].param, filterName: this.getFilterOption @@ -74,6 +73,10 @@ export default { } }, + created() { + this.initSearchOptions() + }, + methods: { ...mapActions('documents', ['getDocumentList']), ...mapMutations('documents', ['setCurrent', 'updateSearchOptions', 'initSearchOptions'])