Skip to content

Commit

Permalink
[front-end] rename getDataset as getDatasetLocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Stokoe committed Oct 28, 2024
1 parent 792bf86 commit fd8d89d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/front-end/src/components/map/mapSlice.ts
Original file line number Diff line number Diff line change
@@ -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[][];
Expand All @@ -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 ?? [];
Expand Down
7 changes: 6 additions & 1 deletion apps/front-end/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ const client = initClient(contract, {
baseHeaders: {},
});

export const { getDataset, searchDataset, getDatasetItem, getVersion } = client;
export const {
getDatasetLocations,
searchDataset,
getDatasetItem,
getVersion,
} = client;

0 comments on commit fd8d89d

Please sign in to comment.