diff --git a/app/routes/explore.tsx b/app/routes/explore.tsx index a315760e..7ca0b611 100644 --- a/app/routes/explore.tsx +++ b/app/routes/explore.tsx @@ -119,7 +119,7 @@ export async function loader({ request }: LoaderFunctionArgs) { // check if sensors are queried - if not get devices only to reduce load const devices = !urlFilterParams.get("phenomenon") - ? await getDevices() + ? await getDevices("geojson") : await getDevicesWithSensors(); const session = await getUserSession(request);