Skip to content

Commit 72db935

Browse files
chimmytenli-xin-yi
authored andcommitted
trigger auto-layout when auto-layout setting is toggled on (#339)
1 parent 253352b commit 72db935

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/src/components/Sidebar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function SidebarSettings() {
9595
color="warning"
9696
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
9797
setAutoRunLayout(event.target.checked);
98+
if (event.target.checked) {
99+
autoLayoutROOT();
100+
}
98101
}}
99102
/>
100103
}

0 commit comments

Comments
 (0)