olym %!s(int64=7) %!d(string=hai) anos
pai
achega
aaf62a9e87
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         return result;
     }
     }
     if (gljType === 0) {
     if (gljType === 0) {
-        return this.datas[code];
+        return this.datas[code] !== undefined ? this.datas[code] : result;
     }
     }
 
 
     for(let composition of this.datas[code]) {
     for(let composition of this.datas[code]) {