Eric Tröbs 4 years ago
parent
commit
bf23e9a2c8
1 changed files with 3 additions and 1 deletions
  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);
           }
         }