diff --git a/components/Geopanel/Membershippanel.tsx b/components/Geopanel/Membershippanel.tsx index 03c0249..feabb2a 100644 --- a/components/Geopanel/Membershippanel.tsx +++ b/components/Geopanel/Membershippanel.tsx @@ -33,10 +33,12 @@ const Membershippanel = ({ selectedMemberFeatures, setSelectedDistrictFeatures, /* @ts-ignore */ map?.getSource("districts").setData({ type: "FeatureCollection", + /* @ts-ignore */ features: ((district === "assembly" ? assembly : senate) as GeoJson).features }); const clickedDistrictData = { + /* @ts-ignore */ features: ((district === "assembly" ? assembly : senate) as GeoJson).features.filter((d, i) => d.properties.District.toString() === selectedDistrict) }