From: marc tobias Date: Thu, 20 Feb 2020 17:59:48 +0000 (+0100) Subject: Further ignore yes (e.g. building=yes) as type when printing results X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/0aeb1c36b69de467ec9cae66fe43241ee5fa99ec?ds=sidebyside Further ignore yes (e.g. building=yes) as type when printing results --- diff --git a/src/handlebar_helpers.js b/src/handlebar_helpers.js index a1872f0..358ac36 100644 --- a/src/handlebar_helpers.js +++ b/src/handlebar_helpers.js @@ -117,7 +117,7 @@ Handlebars.registerHelper({ if (aPlace.type && aPlace.type === 'yes' && aPlace.class) { return capitalize(aPlace.class.replace(/_/g, ' ')); - } else if (aPlace.class) { + } else if (aPlace.type) { return capitalize(aPlace.type.replace(/_/g, ' ')); } return '';