Browse Source

Replace LabelApplicationService with SpanType

pull/1619/head
Hironsan 3 years ago
parent
commit
a2af78ee4f
1 changed files with 2 additions and 2 deletions
  1. 4
      frontend/pages/projects/_id/sequence-labeling/index.vue

4
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);
}
},

Loading…
Cancel
Save