Skip to content

Commit a76a3e8

Browse files
committed
fix marker animations not being cleared
This fixes JustFly1984#3247.
1 parent bd2661b commit a76a3e8

File tree

1 file changed

+1
-3
lines changed
  • packages/react-google-maps-api/src/components/drawing

1 file changed

+1
-3
lines changed

packages/react-google-maps-api/src/components/drawing/Marker.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,7 @@ function MarkerFunctional({
279279
}, [instance, visible])
280280

281281
useEffect(() => {
282-
if (animation && instance !== null) {
283-
instance.setAnimation(animation)
284-
}
282+
instance?.setAnimation(animation)
285283
}, [instance, animation])
286284

287285
useEffect(() => {

0 commit comments

Comments
 (0)