diff options
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/mapUtil.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/core/mapUtil.js b/modern/src/map/core/mapUtil.js index 23805a3f..feb458d6 100644 --- a/modern/src/map/core/mapUtil.js +++ b/modern/src/map/core/mapUtil.js @@ -52,7 +52,7 @@ export const reverseCoordinates = (it) => { if (!it) { return it; } if (Array.isArray(it)) { - if (it.length === 2 && !Number.isNaN(it[0]) && !Number.isNaN(it[1])) { + if (it.length === 2 && typeof it[0] === 'number' && typeof it[1] === 'number') { return [it[1], it[0]]; } return it.map((it) => reverseCoordinates(it)); |