diff --git a/src/ui/src/components/visualizer/worker/graph_expander.ts b/src/ui/src/components/visualizer/worker/graph_expander.ts index 2fdf0c73..4ecd3fd2 100644 --- a/src/ui/src/components/visualizer/worker/graph_expander.ts +++ b/src/ui/src/components/visualizer/worker/graph_expander.ts @@ -129,7 +129,10 @@ export class GraphExpander { const queue: string[] = [...groupNodeIds]; while (queue.length > 0) { const curGroupNodeId = queue.shift()!; - if (seenGroupNodeIds.has(curGroupNodeId)) { + if ( + seenGroupNodeIds.has(curGroupNodeId) || + !this.modelGraph.nodesById[curGroupNodeId] + ) { continue; } seenGroupNodeIds.add(curGroupNodeId);