fix(simulation): open polygon as direct workspace
This commit is contained in:
@@ -222,6 +222,7 @@ 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) {
|
||||
@@ -420,8 +421,8 @@ export default function App() {
|
||||
const selectRoot = (rootId: RootId) => {
|
||||
setActiveRoot(rootId);
|
||||
if (rootId === "polygon") {
|
||||
workspace.closeNavigation();
|
||||
workspace.openView("polygon-run");
|
||||
workspace.closeNavigation();
|
||||
return;
|
||||
}
|
||||
workspace.closeView();
|
||||
|
||||
Reference in New Issue
Block a user