Skip to content

Commit 0c323c4

Browse files
committed
chore: hide hasChildren on infinite treenode
1 parent 0faf509 commit 0c323c4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/pluggableWidgets/tree-node-web/src/TreeNode.editorConfig.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ export function getProperties(
5454
} else {
5555
hidePropertyIn(defaultProperties, values, "advancedMode");
5656
}
57+
58+
if (
59+
values.parentAssociation !== null &&
60+
values.parentAssociation !== undefined &&
61+
values.parentAssociation !== ""
62+
) {
63+
hidePropertiesIn(defaultProperties, values, ["hasChildren"]);
64+
}
5765
return defaultProperties;
5866
}
5967

0 commit comments

Comments
 (0)