From 75700e0990caf86df6a2f3d838413504bff12196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20V=C3=A1clav=C3=ADk?= Date: Mon, 27 Jan 2025 06:37:11 +0100 Subject: [PATCH] NwrIcon: Fix unknown type --- src/components/FeaturePanel/NwrIcon.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/FeaturePanel/NwrIcon.tsx b/src/components/FeaturePanel/NwrIcon.tsx index 1886cacb..e1a44d3f 100644 --- a/src/components/FeaturePanel/NwrIcon.tsx +++ b/src/components/FeaturePanel/NwrIcon.tsx @@ -34,6 +34,8 @@ const typeMap: TypeMap = { export const NwrIcon = ({ osmType, color, fontSize }: NwrIconProps) => { const type = typeMap[osmType]; + if (!type) return null; + const IconComponent = type.icon; const { name, scale } = type;