From d336eafaa3bb973829893d5bfd881c35a11bbd44 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 10 May 2021 23:46:50 +0200 Subject: [PATCH] Add some failsafes: don't let those special renderings render if they are not defined --- assets/layers/drinking_water/drinking_water.json | 3 ++- assets/tagRenderings/questions.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/layers/drinking_water/drinking_water.json b/assets/layers/drinking_water/drinking_water.json index 6a84102f2..6488321b8 100644 --- a/assets/layers/drinking_water/drinking_water.json +++ b/assets/layers/drinking_water/drinking_water.json @@ -131,7 +131,8 @@ "render":{ "en": "There is another drinking water fountain at {_closest_other_drinking_water_distance} meter", "nl": "Er bevindt zich een ander drinkwaterpunt op {_closest_other_drinking_water_distance} meter" - } + }, + "condition": "_closest_other_drinking_water_id~*" } ] } diff --git a/assets/tagRenderings/questions.json b/assets/tagRenderings/questions.json index 338d7c6bc..a7fd65450 100644 --- a/assets/tagRenderings/questions.json +++ b/assets/tagRenderings/questions.json @@ -80,7 +80,7 @@ }, "last_edit": { "#": "Gives some metainfo about the last edit and who did edit it - rendering only", - "#condition": "_last_edit:contributor~*", + "condition": "_last_edit:contributor~*", "render": "
Last edited on {_last_edit:timestamp} by {_last_edit:contributor}
" } } \ No newline at end of file