diff --git a/apps/front-end/src/components/map/mapSlice.ts b/apps/front-end/src/components/map/mapSlice.ts index 83ece86f..c76bb3f4 100644 --- a/apps/front-end/src/components/map/mapSlice.ts +++ b/apps/front-end/src/components/map/mapSlice.ts @@ -1,6 +1,6 @@ import { createSelector } from "@reduxjs/toolkit"; import { createAppSlice } from "../../app/createAppSlice"; -import { getDataset } from "../../services"; +import { getDatasetLocations } from "../../services"; export interface MapSliceState { allLocations: number[][]; @@ -26,7 +26,7 @@ export const mapSlice = createAppSlice({ ); } - const response = await getDataset({ params: { datasetId } }); + const response = await getDatasetLocations({ params: { datasetId } }); if (response.status === 200) { const locations = response.body ?? []; diff --git a/apps/front-end/src/services/index.ts b/apps/front-end/src/services/index.ts index b8bff337..9b26ad79 100644 --- a/apps/front-end/src/services/index.ts +++ b/apps/front-end/src/services/index.ts @@ -6,4 +6,9 @@ const client = initClient(contract, { baseHeaders: {}, }); -export const { getDataset, searchDataset, getDatasetItem, getVersion } = client; +export const { + getDatasetLocations, + searchDataset, + getDatasetItem, + getVersion, +} = client;