6
0
Dimitri Korsch 3 жил өмнө
parent
commit
b2528611fc

+ 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;
         }
       }