Skip to content

Commit 1a6b69c

Browse files
authored
Update Map.tsx
Fixed a minor issue in componentWillUpdate method
1 parent 87af8a7 commit 1a6b69c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/map/Map.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Map extends React.Component<IMapProps, IMapState> {
4747
public componentWillUpdate(nextProps: IMapProps, nextState: IMapState): void {
4848
if (!isEqual(this.props.coordinates, nextProps.coordinates)) {
4949
this.setState({
50-
coordinates: this.props.coordinates
50+
coordinates: nextProps.coordinates
5151
});
5252
}
5353
}

0 commit comments

Comments
 (0)