From 88c5fd5095bf65a08ae1d9e45c2dad48f7eacbae Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 2 Dec 2021 15:32:49 +0900 Subject: [PATCH] Update cleanup method --- frontend/components/tasks/sequenceLabeling/EntityEditor.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/components/tasks/sequenceLabeling/EntityEditor.vue b/frontend/components/tasks/sequenceLabeling/EntityEditor.vue index a96be9b7..3f927544 100644 --- a/frontend/components/tasks/sequenceLabeling/EntityEditor.vue +++ b/frontend/components/tasks/sequenceLabeling/EntityEditor.vue @@ -217,8 +217,9 @@ export default Vue.extend({ // Todo: a bit hacky. I want to fix this problem. // https://github.com/vuetifyjs/vuetify/issues/10765 this.$nextTick(() => { - // @ts-ignore - this.$refs.autocomplete!.selectedItems = [] + if (this.$refs.autocomplete) { + (this.$refs.autocomplete as any).selectedItems = [] + } }) },