diff --git a/client/src/containers/map/layer-manager/item.tsx b/client/src/containers/map/layer-manager/item.tsx index 35180ed2..40ebdacb 100644 --- a/client/src/containers/map/layer-manager/item.tsx +++ b/client/src/containers/map/layer-manager/item.tsx @@ -9,19 +9,20 @@ import { parseConfig } from '@/lib/json-converter'; import { layersInteractiveAtom, layersInteractiveIdsAtom } from '@/store'; import { useGetLayersId } from '@/types/generated/layer'; -import { LayerResponseDataObject } from '@/types/generated/strapi.schemas'; import { Config, LayerTyped } from '@/types/layers'; import DeckJsonLayer from '@/components/map/layers/deck-json-layer'; import MapboxLayer from '@/components/map/layers/mapbox-layer'; -interface LayerManagerItemProps extends Required> { +interface LayerManagerItemProps { + id: string; beforeId: string; settings: Record; } const LayerManagerItem = ({ id, beforeId, settings }: LayerManagerItemProps) => { - const { data } = useGetLayersId(id); + // TODO: change strapi schema id to string + const { data } = useGetLayersId(Number(id)); const setLayersInteractiveIds = useSetAtom(layersInteractiveIdsAtom); diff --git a/client/src/store/index.ts b/client/src/store/index.ts index 240763bf..a079e591 100644 --- a/client/src/store/index.ts +++ b/client/src/store/index.ts @@ -33,7 +33,7 @@ export const tmpBboxAtom = atom(['projects']); -export const layersInteractiveAtom = atom([]); +export const layersInteractiveAtom = atom([]); export const layersInteractiveIdsAtom = atom([]);