Skip to content

Commit

Permalink
fix: POI ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
pReya committed Oct 17, 2023
1 parent d86889c commit f59cbf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/InterventionsMapDataWrapper.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ interface Props {
const { count } = Astro.props;
const rawInterventionsContent = await Astro.glob<Partial<IInterventionFrontmatter>>(
"../pages/en/interventions/*.mdx"
);
const rawInterventionsContent = await Astro.glob<
Partial<IInterventionFrontmatter>
>("../pages/en/interventions/*.mdx");
const trimmedAndSorted = trimAndSortInterventions(
rawInterventionsContent,
Expand All @@ -28,7 +28,8 @@ const sortedPoiData = transformInterventionsToPoiData(trimmedAndSorted);
const airtablePois = await getMapPois();
const combinedPois = [...sortedPoiData, ...(airtablePois || [])];
const combinedPois = [...(airtablePois || []), ...sortedPoiData];
const bounds = combinedPois.reduce(
(bounds, poi) => {
Expand All @@ -39,7 +40,6 @@ const bounds = combinedPois.reduce(
sortedPoiData[0].locationLngLat
)
);
---

<InterventionMap
Expand Down

0 comments on commit f59cbf8

Please sign in to comment.