Skip to content

Commit

Permalink
type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudLun committed Nov 28, 2023
1 parent 4755b29 commit cd5e8de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Geopanel/Membershippanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit cd5e8de

Please sign in to comment.