Fix node status sync error (WIP)

TODO: Use Map object to optimize node lookup
This commit is contained in:
2026-05-18 12:40:25 +02:00
parent 6777037d3d
commit 9ae4b0bb8f
2 changed files with 14 additions and 4 deletions

View File

@@ -8,9 +8,10 @@ initStimulus();
AppState.currentScene = 'ssgp';
const marker = config.markers.find(m => m.id === 'ssgp');
AppState.normalizedNodes = normalizeNodes(marker.nodes).flat;
AppState.treeNodes = normalizeNodes(marker.nodes).tree;
const {flat, tree} = normalizeNodes(marker.nodes);
AppState.normalizedNodes = flat;
AppState.treeNodes = tree;
//console.debug(AppState.treeNodes);
// TODO: add Map object for lookup optimization
openScene(marker, AppState.normalizedNodes);