Skip to content

Commit

Permalink
#971: remove componentWillReceiveProps
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliauvarova authored and vmonakhov committed May 31, 2023
1 parent c73eeda commit 119ef63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Map/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ class Map extends React.Component {
}).addTo(this.leaflet);
}

componentWillReceiveProps(nextProps) {
componentDidUpdate(prevProps) {
const {
actions,
data: { loading, dictionaries, blobs: allBlobs }
} = nextProps;
} = this.props;

if (!loading && dictionaries) {
const markersGroup = L.markerClusterGroup({ maxClusterRadius: 70, showCoverageOnHover: false });
Expand Down

0 comments on commit 119ef63

Please sign in to comment.