From f5f21782d267252bff60bebdb6fab272d72ee4be Mon Sep 17 00:00:00 2001 From: Michele Bigi Date: Sun, 13 Sep 2026 17:17:59 +0200 Subject: [PATCH] Fix optional nets typing in topology rails view. Co-authored-by: Cursor --- frontend/src/components/project/topology-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/project/topology-panel.tsx b/frontend/src/components/project/topology-panel.tsx index a93ba04..4b52ea1 100644 --- a/frontend/src/components/project/topology-panel.tsx +++ b/frontend/src/components/project/topology-panel.tsx @@ -181,12 +181,12 @@ function RailsView({ plan }: { plan: PlacementPlan }) { // Also attach groups that list the rail on their nets / satellites for (const g of plan.groups) { - for (const net of g.nets) { + for (const net of g.nets ?? []) { const entry = map.get(net); if (entry) entry.groupRefs.add(g.ref); } for (const s of g.satellites) { - for (const net of s.nets || []) { + for (const net of s.nets ?? []) { const entry = map.get(net); if (entry) entry.groupRefs.add(g.ref); }