fix: restore missing itemKey function in Sidebar (caused infinite load)
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 1m13s
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 1m13s
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
{ label: "Speedtest", remoteHref: "https://speed.jimmygan.com:8443", icon: "speedtest", external: true },
|
{ 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
|
// All items indexed by key for cross-category lookup
|
||||||
const allItems = new Map([...defaultLinks, ...defaultMedia, ...defaultTools].map(i => [itemKey(i), i]));
|
const allItems = new Map([...defaultLinks, ...defaultMedia, ...defaultTools].map(i => [itemKey(i), i]));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user