Skip to content

Commit

Permalink
Hotfix : Removing top level await
Browse files Browse the repository at this point in the history
  • Loading branch information
VPoussou committed Jul 15, 2024
1 parent 5ed4530 commit 42235c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const PLANET_BASEMAP_API_KEY = import.meta.env.VITE_PLANET_BASEMAP_API_KEY;
export const MIN_DATE = new Date("2016-01-01T00:00:00.000");
export const MAX_DATE = subMonths(new Date(), 1);

const wayBackItems = await getWaybackItems()
const initWayBackItems = async () => {
return await getWaybackItems();
}
const wayBackItems = initWayBackItems();
const baseWaybackUrl = "https://wayback.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/WMTS/1.0.0/default028mm/MapServer/tile/"

export const waybackUrl = (date:Date) => {
Expand Down

0 comments on commit 42235c8

Please sign in to comment.