X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f51f2a70794858f9c8fb5d75ecd40fd1e4ec3897..c6bcd1321efd293e989002cd3d222e6f756ae493:/src/lib/helpers.js diff --git a/src/lib/helpers.js b/src/lib/helpers.js index cbbdbc9..a2e5d82 100644 --- a/src/lib/helpers.js +++ b/src/lib/helpers.js @@ -100,7 +100,7 @@ function formatPlaceType(aPlace) { // Any over 15 are invalid data in OSM anyway function formatAdminLevel(iLevel) { - return (iLevel < 15 ? iLevel : ''); + return (iLevel && iLevel < 15 ? iLevel : ''); } function formatDistance(fDistance, bInMeters) {