From 5f8b539e6483acbf14c52f284dc9fc9d9c03821e Mon Sep 17 00:00:00 2001 From: nataliauvarova Date: Fri, 19 May 2023 11:33:37 +0000 Subject: [PATCH] #971: remove componentWillReceiveProps --- src/pages/Map/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Map/index.js b/src/pages/Map/index.js index 63f77d0b..b1900357 100644 --- a/src/pages/Map/index.js +++ b/src/pages/Map/index.js @@ -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 });