From 7116326f2c9b4328133c4416ae52c1b9e729bd38 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Fri, 2 Aug 2024 11:06:10 +0100 Subject: [PATCH] remove console log and add dependecy to useEffect --- editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx index dc17a6e2a8..9e64a1fc53 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx @@ -54,9 +54,8 @@ function MapAndLabelComponent(props: Props) { return function cleanup() { map?.removeEventListener("areaChange", areaChangeHandler); map?.removeEventListener("geojsonChange", geojsonChangeHandler); - console.log("cleanup"); }; - }, [objectArray]); + }, [objectArray, boundary]); return (