From 427bf49a28b85fc3325822a4799f8ff4f1d30125 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 24 May 2021 11:38:17 +0900 Subject: [PATCH] Update ToolbarLaptop.vue --- frontend/components/tasks/toolbar/ToolbarLaptop.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/components/tasks/toolbar/ToolbarLaptop.vue b/frontend/components/tasks/toolbar/ToolbarLaptop.vue index 265fc331..ed3cfcb8 100644 --- a/frontend/components/tasks/toolbar/ToolbarLaptop.vue +++ b/frontend/components/tasks/toolbar/ToolbarLaptop.vue @@ -171,16 +171,9 @@ export default Vue.extend({ }}) }, - async updateAutoLabeling(isEnable: boolean) { + updateAutoLabeling(isEnable: boolean) { if (isEnable) { - try { - const projectId = this.$route.params.id - await this.$services.textClassification.autoLabel(projectId, this.docId) - this.$emit('update:enable-auto-labeling', true) - this.errorMessage = '' - } catch (e) { - this.errorMessage = e.response.data.detail - } + this.$emit('update:enable-auto-labeling', true) } else { this.$emit('update:enable-auto-labeling', false) }