feature/ignore-self-toggle #1

Merged
lukas.pupkalipinski merged 97 commits from feature/ignore-self-toggle into main 2026-03-14 21:19:28 +01:00
Showing only changes of commit f06fea699f - Show all commits

View File

@@ -83,6 +83,12 @@ function GeoLayer({
[selectedCountry, onSelectCountry],
);
// react-simple-maps types declare `path` as always defined, but it is
// undefined during early renders before the MapProvider context initialises.
// Cast through unknown to reflect the true runtime type and guard safely.
const safePath = path as unknown as typeof path | null;
if (safePath == null) return <></>;
return (
<>
{(geographies as { rsmKey: string; id: string | number }[]).map(