Skip to content

Commit efc3f94

Browse files
committed
fix:tree Expand and collapse bug
1 parent eb7238b commit efc3f94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chat2db-client/src/blocks/NewTree/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const TreeNode = memo((props: TreeNodeIProps) => {
180180
result = _treeData[i];
181181
result.children = data;
182182
result.expanded = !!data;
183-
setTreeData?.([...(treeData || [])]);
183+
setTreeData?.(cloneDeep(treeData || []));
184184
break;
185185
} else {
186186
if (_treeData[i].children) {

0 commit comments

Comments
 (0)