We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3eebe7 commit 0b92149Copy full SHA for 0b92149
ui/src/components/Sidebar.tsx
@@ -53,6 +53,7 @@ function SidebarSettings() {
53
const setAutoRunLayout = useStore(store, (state) => state.setAutoRunLayout);
54
const contextualZoom = useStore(store, (state) => state.contextualZoom);
55
const setContextualZoom = useStore(store, (state) => state.setContextualZoom);
56
+ const autoLayoutROOT = useStore(store, (state) => state.autoLayoutROOT);
57
return (
58
<Box>
59
@@ -89,6 +90,9 @@ function SidebarSettings() {
89
90
color="warning"
91
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
92
setAutoRunLayout(event.target.checked);
93
+ if (event.target.checked) {
94
+ autoLayoutROOT();
95
+ }
96
}}
97
/>
98
}
0 commit comments