Skip to content

Commit eddc842

Browse files
authored
Merge pull request JustFly1984#3248 from jneander/develop
fix marker animations not being cleared
2 parents bd2661b + a76a3e8 commit eddc842

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)