Browse Source

Merge pull request #669 from doccano/bugfix/filter-state

Fix filter initial state
pull/670/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
fda1e0c742
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. 5
      frontend/components/containers/annotation/FilterButton.vue

5
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'])

Loading…
Cancel
Save