Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix(icons): narrow ICON_MAP lookup type for strict build

Pouzor928f63df0f78
diff --git a/frontend/src/utils/nodeIcons.ts b/frontend/src/utils/nodeIcons.ts
index 9ec55b0..c781d0a 100644
--- a/frontend/src/utils/nodeIcons.ts
+++ b/frontend/src/utils/nodeIcons.ts
@@ -218,6 +218,6 @@ export function resolveCustomIcon(customIconKey?: string): ResolvedIcon | null {
const slug = brandIconSlug(customIconKey)
return { kind: 'brand', slug, url: brandIconUrl(slug) }
}
- const icon = ICON_MAP[customIconKey]
+ const icon = ICON_MAP[customIconKey] as LucideIcon | undefined
return icon ? { kind: 'lucide', icon } : null
}