fix: restore missing itemKey function in Sidebar (caused infinite load)
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 1m13s

This commit is contained in:
Gan, Jimmy
2026-03-01 15:44:36 +08:00
parent d40a2ebc45
commit ada5f3f0f4
@@ -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]));