From 112aa63b8a9489431051a686efa07e8cb1ec7eea Mon Sep 17 00:00:00 2001 From: David Inga Date: Wed, 20 Mar 2024 20:09:01 +0100 Subject: [PATCH] last minute fixes --- .../src/containers/analysis-eudr/map/basemap/component.tsx | 5 ++++- client/src/containers/analysis-eudr/map/compare.tsx | 2 +- client/src/pages/eudr/suppliers/[supplierId].tsx | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/containers/analysis-eudr/map/basemap/component.tsx b/client/src/containers/analysis-eudr/map/basemap/component.tsx index 9dded8d8d..11d3a215d 100644 --- a/client/src/containers/analysis-eudr/map/basemap/component.tsx +++ b/client/src/containers/analysis-eudr/map/basemap/component.tsx @@ -46,7 +46,10 @@ const EUDRBasemapControl = () => { (checked: boolean) => { dispatch(setBasemap('planet')); dispatch(setPlanetLayer({ active: checked })); - if (!checked) dispatch(setPlanetCompareLayer({ active: false })); + if (!checked) { + dispatch(setBasemap('light')); + dispatch(setPlanetCompareLayer({ active: false })); + } }, [dispatch], ); diff --git a/client/src/containers/analysis-eudr/map/compare.tsx b/client/src/containers/analysis-eudr/map/compare.tsx index d3ff59eef..1c6ebe1c0 100644 --- a/client/src/containers/analysis-eudr/map/compare.tsx +++ b/client/src/containers/analysis-eudr/map/compare.tsx @@ -53,7 +53,7 @@ setDefaultCredentials({ 'eyJhbGciOiJIUzI1NiJ9.eyJhIjoiYWNfemsydWhpaDYiLCJqdGkiOiJjZDk0ZWIyZSJ9.oqLagnOEc-j7Z4hY-MTP1yoZA_vJ7WYYAkOz_NUmCJo', }); -const EUDRCompareMap: React.FC<{ supplierId?: string }> = ({ supplierId }) => { +const EUDRCompareMap = () => { const maps = useMap(); const { diff --git a/client/src/pages/eudr/suppliers/[supplierId].tsx b/client/src/pages/eudr/suppliers/[supplierId].tsx index 01783aac6..a74697c72 100644 --- a/client/src/pages/eudr/suppliers/[supplierId].tsx +++ b/client/src/pages/eudr/suppliers/[supplierId].tsx @@ -97,7 +97,7 @@ const MapPage: NextPageWithLayout = () => {
{!planetCompareLayer.active && } - {planetCompareLayer.active && } + {planetCompareLayer.active && }