X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/a5f594a93c83cfad8aa3361c422043a5e5db95c1..bd736ef3e4a2554147cc49a55537052489ed7bfe:/src/lib/helpers.js?ds=inline diff --git a/src/lib/helpers.js b/src/lib/helpers.js index a2e5d82..de1cfd4 100644 --- a/src/lib/helpers.js +++ b/src/lib/helpers.js @@ -41,8 +41,8 @@ function formatLabel(aPlace) { return s && s[0].toUpperCase() + s.slice(1); } - if (aPlace.type && aPlace.type === 'yes' && aPlace.class) { - return capitalize(aPlace.class.replace(/_/g, ' ')); + if (aPlace.type && aPlace.type === 'yes' && aPlace.category) { + return capitalize(aPlace.category.replace(/_/g, ' ')); } if (aPlace.type) { return capitalize(aPlace.type.replace(/_/g, ' '));