From a2af78ee4f5543cd8d8d63b2370cf03fc9c064da Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 7 Jan 2022 09:23:38 +0900 Subject: [PATCH] Replace LabelApplicationService with SpanType --- frontend/pages/projects/_id/sequence-labeling/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/projects/_id/sequence-labeling/index.vue b/frontend/pages/projects/_id/sequence-labeling/index.vue index c1cb8c05..c6110f87 100644 --- a/frontend/pages/projects/_id/sequence-labeling/index.vue +++ b/frontend/pages/projects/_id/sequence-labeling/index.vue @@ -123,7 +123,7 @@ export default { }, async created() { - this.labels = await this.$services.label.list(this.projectId) + this.labels = await this.$services.spanType.list(this.projectId) this.linkTypes = await this.$services.linkTypes.list(this.projectId) this.project = await this.$services.project.findById(this.projectId) }, @@ -132,7 +132,7 @@ export default { async maybeFetchLabels(annotations) { const labelIds = new Set(this.labels.map((label) => label.id)); if (annotations.some((item) => !labelIds.has(item.label))) { - this.labels = await this.$services.label.list(this.projectId); + this.labels = await this.$services.spanType.list(this.projectId); } },