From 1a6b69c8313707feda6920100003a518036ab106 Mon Sep 17 00:00:00 2001 From: Anoop Tatti Date: Mon, 24 Aug 2020 00:02:51 +0100 Subject: [PATCH] Update Map.tsx Fixed a minor issue in componentWillUpdate method --- src/controls/map/Map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/map/Map.tsx b/src/controls/map/Map.tsx index d2170b195..0ccdc68fa 100644 --- a/src/controls/map/Map.tsx +++ b/src/controls/map/Map.tsx @@ -47,7 +47,7 @@ export class Map extends React.Component { public componentWillUpdate(nextProps: IMapProps, nextState: IMapState): void { if (!isEqual(this.props.coordinates, nextProps.coordinates)) { this.setState({ - coordinates: this.props.coordinates + coordinates: nextProps.coordinates }); } }