MaiXinRong 5 năm trước cách đây
mục cha
commit
8279b47deb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/report_memory.js

+ 1 - 1
app/service/report_memory.js

@@ -337,7 +337,7 @@ module.exports = app => {
             for (const node of this.billsTree.nodes) {
                 if (node.b_code) {
                     const leafXmj = this.billsTree.getLeafXmjParent(node);
-                    node.leaf_xmj_id = leafXmj.id;
+                    node.leaf_xmj_id = leafXmj ? leafXmj.id : -1;
                 }
             }
         }