From ada5f3f0f47a19a4757553dc24724a7c221ed78a Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Sun, 1 Mar 2026 15:44:36 +0800 Subject: [PATCH] fix: restore missing itemKey function in Sidebar (caused infinite load) --- dashboard/frontend/src/components/Sidebar.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dashboard/frontend/src/components/Sidebar.svelte b/dashboard/frontend/src/components/Sidebar.svelte index 17d51b3..4a44cd1 100644 --- a/dashboard/frontend/src/components/Sidebar.svelte +++ b/dashboard/frontend/src/components/Sidebar.svelte @@ -44,6 +44,8 @@ { label: "Speedtest", remoteHref: "https://speed.jimmygan.com:8443", icon: "speedtest", external: true }, ]; + function itemKey(item) { return item.id || item.label; } + // All items indexed by key for cross-category lookup const allItems = new Map([...defaultLinks, ...defaultMedia, ...defaultTools].map(i => [itemKey(i), i]));