Skip to content

Commit 57bcb7f

Browse files
treeComp: expand newly added data if default Expand flag is true
1 parent cb852f1 commit 57bcb7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/comps/treeComp/treeUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function useTree(props: RecordConstructorToView<typeof treeCommonChildren
8787
} else {
8888
expanded.reset();
8989
}
90-
}, [defaultExpandAll]);
90+
}, [defaultExpandAll, treeData]);
9191
}
9292

9393
type TreeCommonComp = NewChildren<RecordConstructorToComp<typeof treeCommonChildren>>;

0 commit comments

Comments
 (0)