Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring
TypeScript diagramhomelabhomelab-infrastructure-observabilitynetworkproxmox-veself-hostedzigbeezwavezwave-js
fix: add null-safe default for nodes array in GroupRectNode
pranjal-joshi69aa8256f0b0
diff --git a/frontend/src/components/canvas/nodes/GroupRectNode.tsx b/frontend/src/components/canvas/nodes/GroupRectNode.tsxindex 581f391..cbb8a5b 100644--- a/frontend/src/components/canvas/nodes/GroupRectNode.tsx+++ b/frontend/src/components/canvas/nodes/GroupRectNode.tsx@@ -55,7 +55,7 @@ export function GroupRectNode({ id, data, selected }: NodeProps<Node<NodeData>>)const posStyle = POSITION_STYLES[textPos]// Count children for collapse badge- const childrenCount = nodes.filter((n) => n.parentId === id).length+ const childrenCount = (nodes ?? []).filter((n) => n.parentId === id).lengthconst outsideJustify = textPos.includes('right') ? 'flex-end': (textPos.includes('center') || textPos === 'center') ? 'center'