Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: checkbox onChange anti-pattern in PendingDevicesPanel

Pouzor110592f89e53
diff --git a/frontend/src/components/panels/Sidebar.tsx b/frontend/src/components/panels/Sidebar.tsx
index e614da5..c7b5d73 100644
--- a/frontend/src/components/panels/Sidebar.tsx
+++ b/frontend/src/components/panels/Sidebar.tsx
@@ -395,8 +395,7 @@ function PendingDevicesPanel({ onNodeApproved, highlightId }: { onNodeApproved:
<input
type="checkbox"
checked={checkedIds.has(d.id)}
- onClick={(e) => toggleCheck(d.id, e)}
- onChange={() => {}}
+ onChange={(e) => { e.stopPropagation(); toggleCheck(d.id, e as unknown as React.MouseEvent) }}
className="w-3 h-3 accent-[#00d4ff] cursor-pointer shrink-0"
/>
<span className="text-foreground truncate font-medium">{title}</span>