From a390bc76155d5b6f98f4460b38846f8c39dffd13 Mon Sep 17 00:00:00 2001 From: Joshua Seigler <2583159+seigler@users.noreply.github.com> Date: Mon, 19 May 2025 16:45:55 -0400 Subject: [PATCH] dashboard bugfix - handle initial visit with no saved solutions --- src/Dashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dashboard.tsx b/src/Dashboard.tsx index b7edd81..cc2c2a1 100644 --- a/src/Dashboard.tsx +++ b/src/Dashboard.tsx @@ -65,7 +65,7 @@ const colorStrings = [ export default function Dashboard() { const { connections, store } = useAppModel(); const nextUnsolvedId = createMemo(() => { - return connections.find((x) => store.solutions[x.id] === undefined)?.id; + return connections.find((x) => (store.solutions ?? [])[x.id] === undefined)?.id; }); return (