MaiXinRong 3 years ago
parent
commit
b9230a5d2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/public/js/budget_detail.js

+ 1 - 1
app/public/js/budget_detail.js

@@ -544,7 +544,7 @@ $(document).ready(() => {
                             copyPosterity.unshift(node);
                             const copyData = sheet.zh_tree.getDefaultData(copyPosterity);
                             for (const p of copyData) {
-                                const children = copyData.filter(y => {return y.ledger_pid === p.ledger_id}) || [];
+                                const children = copyData.filter(y => {return y.tree_pid === p.tree_id}) || [];
                                 p.is_leaf = children.length === 0;
                             }
                             copyBlockList.push(copyData);