]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Further ignore yes (e.g. building=yes) as type when printing results
authormarc tobias <mtmail@gmx.net>
Thu, 20 Feb 2020 17:59:48 +0000 (18:59 +0100)
committermarc tobias <mtmail@gmx.net>
Thu, 20 Feb 2020 17:59:48 +0000 (18:59 +0100)
src/handlebar_helpers.js

index a1872f0a3c0ce751e50517b6872e8fd8e83366ad..358ac36ae54613406eda4c363c1efa81acef0b86 100644 (file)
@@ -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 '';