X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f51f2a70794858f9c8fb5d75ecd40fd1e4ec3897..fe6e7efceb1429fb2c32616895e675131acf476d:/src/lib/helpers.js?ds=sidebyside 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) {