Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: default a rehydrated layout's widget list to [] so the order baseline can't go undefined (#4132)

[._.]/ Adam Eivy37e133912c63
diff --git a/client/src/components/dashboard/LayoutEditor.jsx b/client/src/components/dashboard/LayoutEditor.jsx
index d501319f1f..6385ba630f 100644
--- a/client/src/components/dashboard/LayoutEditor.jsx
+++ b/client/src/components/dashboard/LayoutEditor.jsx
@@ -55,8 +55,9 @@ export default function LayoutEditor({ layouts, activeLayoutId, limits, onClose,
const cur = layouts.find((l) => l.id === editingId);
if (!cur) return;
if (dirty) return;
- setWidgets(cur.widgets);
- unmovedOrder.current = cur.widgets;
+ const curWidgets = cur.widgets ?? [];
+ setWidgets(curWidgets);
+ unmovedOrder.current = curWidgets;
setName(cur.name);
setActivateWindow(cur.activateWindow ?? null);
setMode('idle');