Преглед изворни кода

增强项目树处理不合理数据能力

Tony Kang пре 3 година
родитељ
комит
4efc6bc976
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      public/web/treeDataHelper.js

+ 1 - 1
public/web/treeDataHelper.js

@@ -117,7 +117,7 @@ let tree_Data_Helper = {
                     }
                 }
             }
-            if (parseInt(data[i][P_ID]) !== EMPTY_ID_VAL) {
+            if (parseInt(data[i][P_ID]) !== EMPTY_ID_VAL && tmpNodes[prefix + data[i][P_ID]] !== undefined) {
                 tmpNodes[prefix + data[i][P_ID]][SUB_ID].push(data[i][NODE_ID]);
             }
         }