diff --git a/frontend/src/components/Map/index.tsx b/frontend/src/components/Map/index.tsx index f27c15683..b75a9985d 100644 --- a/frontend/src/components/Map/index.tsx +++ b/frontend/src/components/Map/index.tsx @@ -17,7 +17,10 @@ const SearchMapDynamicComponentWithoutMemo: React.FC = props => ); }; -export const SearchMapDynamicComponent = memo(SearchMapDynamicComponentWithoutMemo, () => true); +export const SearchMapDynamicComponent = memo( + SearchMapDynamicComponentWithoutMemo, + (oldProps, nextProps) => oldProps.hasZoomControl === nextProps.hasZoomControl, +); const DetailsMapDynamicComponentWithoutMemo: React.FC = props => { const DetailsMap = dynamic(() => import('./DetailsMap/DetailsMap'), {