|
@@ -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);
|