X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/21bcfb32a13839ff8c69a452d09e294da800a15a..bd736ef3e4a2554147cc49a55537052489ed7bfe:/src/lib/helpers.js?ds=sidebyside 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, ' '));