Skip to content

Commit 04bcaff

Browse files
committed
Updated tests and made fixes for distance_map
1 parent 524d922 commit 04bcaff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pages/DistanceMap/map.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ class MapAreas extends PureComponent {
204204
render() {
205205
const { location, user, loading } = this.props;
206206

207-
const { mainDictionary } = location.state;
208-
209207
if (!location.state) {
210208
return null;
211209
}
212210

211+
const { mainDictionary } = location.state;
212+
213213
if (loading) {
214214
return <Placeholder />;
215215
}

src/pages/DistanceMap/selectorLangGroup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const SelectorLangGroup = ((props) => {
168168
useEffect(() => {
169169
if (!location.state) {
170170
navigate("/distance_map");
171-
return null;
171+
return;
172172
}
173173
}, [location, navigate]);
174174

0 commit comments

Comments
 (0)