We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bd9291 + 9d2be74 commit b768d0aCopy full SHA for b768d0a
packages/react-google-maps-api/src/components/drawing/DrawingManager.tsx
@@ -94,8 +94,8 @@ function DrawingManagerFunctional({
94
}, [instance, options])
95
96
useEffect(() => {
97
- if (drawingMode && instance !== null) {
98
- instance.setDrawingMode(drawingMode)
+ if (instance !== null) {
+ instance.setDrawingMode(drawingMode ?? null)
99
}
100
}, [instance, drawingMode])
101
0 commit comments