olym пре 7 година
родитељ
комит
aaf62a9e87
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      web/building_saas/main/js/models/composition.js

+ 1 - 1
web/building_saas/main/js/models/composition.js

@@ -64,7 +64,7 @@ Composition.prototype.getCompositionByCode = function(code, gljType = 0) {
         return result;
     }
     if (gljType === 0) {
-        return this.datas[code];
+        return this.datas[code] !== undefined ? this.datas[code] : result;
     }
 
     for(let composition of this.datas[code]) {