Skip to content

Commit accbfe2

Browse files
worthlutzWorth Lutz
andauthored
Keep all original node props in flatnodes (#421)
Co-authored-by: Worth Lutz <[email protected]>
1 parent f711a37 commit accbfe2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/js/NodeModel.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ class NodeModel {
5050
}
5151

5252
this.flatNodes[node.value] = {
53-
label: node.label,
54-
value: node.value,
55-
children: node.children,
53+
...node,
5654
parent,
5755
isChild: parent.value !== undefined,
5856
isParent,

0 commit comments

Comments
 (0)