Skip to content

Commit

Permalink
remove console log and add dependecy to useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Aug 2, 2024
1 parent 1e25eb1 commit 7116326
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor.planx.uk/src/@planx/components/MapAndLabel/Public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Card handleSubmit={props.handleSubmit} isValid>
Expand Down

0 comments on commit 7116326

Please sign in to comment.