Skip to content

Commit

Permalink
Update Map.tsx
Browse files Browse the repository at this point in the history
Fixed a minor issue in componentWillUpdate method
  • Loading branch information
anoopt authored Aug 23, 2020
1 parent 87af8a7 commit 1a6b69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Map extends React.Component<IMapProps, IMapState> {
public componentWillUpdate(nextProps: IMapProps, nextState: IMapState): void {
if (!isEqual(this.props.coordinates, nextProps.coordinates)) {
this.setState({
coordinates: this.props.coordinates
coordinates: nextProps.coordinates
});
}
}
Expand Down

0 comments on commit 1a6b69c

Please sign in to comment.