Quellcode durchsuchen

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/YangHuCost

vian vor 4 Jahren
Ursprung
Commit
6a7556b748
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      web/building_saas/main/js/models/calc_program.js

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

@@ -2078,7 +2078,7 @@ class CalcProgram {
         item.dispExprUser = analyzer.getDispExprUser(item.dispExpr, lc);
         item.dispExprUser = analyzer.getDispExprUser(item.dispExpr, lc);
         if (item.expression == "HJ") item.compiledExpr = "$CE.HJ()";
         if (item.expression == "HJ") item.compiledExpr = "$CE.HJ()";
         else item.compiledExpr = analyzer.getCompiledExpr(item.expression, lc);
         else item.compiledExpr = analyzer.getCompiledExpr(item.expression, lc);
-        if (item.statement === '') {
+        if ((item.statement == undefined) || (item.statement == '')) {
             item.statement = analyzer.getStatement(item.expression, template);
             item.statement = analyzer.getStatement(item.expression, template);
         }
         }