Skip to content

Commit

Permalink
Fix layers
Browse files Browse the repository at this point in the history
  • Loading branch information
barbara-chaves committed Apr 23, 2024
1 parent 5e7216b commit 16f105f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/containers/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default function MapContainer() {
)}
{!isHomePage && <StoryMarkers />}
</Map>
<div className="absolute bottom-0 left-0 z-20 w-full p-4 pb-16">
<div className="absolute bottom-0 left-0 z-20 w-full p-4 pb-16 pl-14">
<MapLegends />
</div>
</div>
Expand Down
17 changes: 12 additions & 5 deletions client/src/containers/map/legend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,20 @@ const MapLegends = ({ className = '' }) => {
isFetching,
isFetched,
isError,
} = useGetLayers({
filters: {
id: {
$in: layers,
} = useGetLayers(
{
filters: {
id: {
$in: layers,
},
},
},
});
{
query: {
enabled: !!layers.length,
},
}
);

const LEGENDS = useMemo(() => {
return layersData?.data?.reduce<LegendProps[]>((acc, curr) => {
Expand Down

0 comments on commit 16f105f

Please sign in to comment.