Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Feb 19, 2024
1 parent 6dce383 commit c7168f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions client/src/containers/map/layer-manager/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Pick<LayerResponseDataObject, 'id'>> {
interface LayerManagerItemProps {
id: string;
beforeId: string;
settings: Record<string, unknown>;
}

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);

Expand Down
2 changes: 1 addition & 1 deletion client/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const tmpBboxAtom = atom<readonly [number, number, number, number] | null
// Map layers
export const layersAtom = atom<readonly string[]>(['projects']);

export const layersInteractiveAtom = atom<number[]>([]);
export const layersInteractiveAtom = atom<string[]>([]);

export const layersInteractiveIdsAtom = atom<string[]>([]);

Expand Down

0 comments on commit c7168f7

Please sign in to comment.