浏览代码

fixed label showing

Dimitri Korsch 3 年之前
父节点
当前提交
b2528611fc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      webui/src/components/media/annotation-box.vue

+ 2 - 2
webui/src/components/media/annotation-box.vue

@@ -27,11 +27,11 @@ export default {
   props: ['box', 'position', 'draggable', 'deletable', 'taggable', 'confirmable', 'labels'],
   computed: {
     labelName: function () {
-      if (!this.box || !this.box.label)
+      if (!this.box || !this.box.label_id)
         return false;
 
       for (let label of this.labels) {
-        if (label.identifier === this.box.label) {
+        if (label.identifier === this.box.label_id) {
           return label.name;
         }
       }