Skip to content

Commit

Permalink
Add key to EditControl so it re-renders when the edit prop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Adams authored and Ben Adams committed Nov 7, 2023
1 parent 8c414ec commit 6cd0d11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MapPreviewDraw/MapPreviewDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const MapPreviewDraw = ({
{!disableDrawControls && (
<>
<EditControl
key={disableEditControls}
position="bottomright"
onCreated={handleOnCreated}
onEdited={handleOnEdited}
Expand Down

0 comments on commit 6cd0d11

Please sign in to comment.