We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 524d922 commit 04bcaffCopy full SHA for 04bcaff
src/pages/DistanceMap/map.js
@@ -204,12 +204,12 @@ class MapAreas extends PureComponent {
204
render() {
205
const { location, user, loading } = this.props;
206
207
- const { mainDictionary } = location.state;
208
-
209
if (!location.state) {
210
return null;
211
}
212
+ const { mainDictionary } = location.state;
+
213
if (loading) {
214
return <Placeholder />;
215
src/pages/DistanceMap/selectorLangGroup.js
@@ -168,7 +168,7 @@ const SelectorLangGroup = ((props) => {
168
useEffect(() => {
169
170
navigate("/distance_map");
171
- return null;
+ return;
172
173
}, [location, navigate]);
174
0 commit comments