diff --git a/apps/control-station/src/App.tsx b/apps/control-station/src/App.tsx index 861e2c6..df7f3e2 100644 --- a/apps/control-station/src/App.tsx +++ b/apps/control-station/src/App.tsx @@ -222,7 +222,6 @@ export default function App() { if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return; polygonRunRouteOpenedRef.current = true; workspace.openView("polygon-run"); - workspace.closeNavigation(); }, [polygonRunRoute.active, workspace]); if (!sceneSettingsCommitterRef.current) { @@ -422,7 +421,6 @@ export default function App() { setActiveRoot(rootId); if (rootId === "polygon") { workspace.openView("polygon-run"); - workspace.closeNavigation(); return; } workspace.closeView(); @@ -653,7 +651,9 @@ export default function App() { data-nodedc-ui className="control-station" data-observation-fullscreen={observationFullscreenActive ? "true" : undefined} - navigationOpen={workspace.navigationOpen && activeRoot !== null} + navigationOpen={ + workspace.navigationOpen && activeRoot !== null && activeRoot !== "polygon" + } contentOpen={workspace.contentOpen && activeDefinition !== null} contentExpanded={workspace.contentExpanded} header={header} @@ -667,7 +667,7 @@ export default function App() { onOpenDevice={() => openView("local-device")} /> } - navigation={currentRoot ? ( + navigation={currentRoot && activeRoot !== "polygon" ? (