diff --git a/src/components/InterventionsMapDataWrapper.astro b/src/components/InterventionsMapDataWrapper.astro index 52ce2376..2e4b9be4 100644 --- a/src/components/InterventionsMapDataWrapper.astro +++ b/src/components/InterventionsMapDataWrapper.astro @@ -15,9 +15,9 @@ interface Props { const { count } = Astro.props; -const rawInterventionsContent = await Astro.glob>( - "../pages/en/interventions/*.mdx" -); +const rawInterventionsContent = await Astro.glob< + Partial +>("../pages/en/interventions/*.mdx"); const trimmedAndSorted = trimAndSortInterventions( rawInterventionsContent, @@ -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) => { @@ -39,7 +40,6 @@ const bounds = combinedPois.reduce( sortedPoiData[0].locationLngLat ) ); - ---