Eric Tröbs %!s(int64=4) %!d(string=hai) anos
pai
achega
bf23e9a2c8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      webui/src/components/projects/project-labels-window.vue

+ 3 - 1
webui/src/components/projects/project-labels-window.vue

@@ -62,7 +62,9 @@ export default {
 
       for (let image of Object.values(this.currentProject.data)) {
         for (let prediction of Object.values(image['predictionResults'])) {
-          if ('label' in prediction && !result[prediction.label].includes(image)) {
+          if ('label' in prediction
+              && prediction.label in result
+              && !result[prediction.label].includes(image)) {
             result[prediction.label].push(image);
           }
         }