From c3b2379af0156a6ebeb80d375d25ad47721e1f47 Mon Sep 17 00:00:00 2001 From: elweyn Date: Tue, 21 Feb 2023 10:22:16 +0100 Subject: [PATCH] markers.geoJSON made 'null' out of a property that had null in it. So added a check on the value and set undefined if value is null. --- webapp/pages/map.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/pages/map.vue b/webapp/pages/map.vue index c0f052961..753ace576 100644 --- a/webapp/pages/map.vue +++ b/webapp/pages/map.vue @@ -258,8 +258,7 @@ export default { ` description += e.features[0].properties.about && - e.features[0].properties.about.length > 0 && - e.features[0].properties.about !== 'null' + e.features[0].properties.about.length > 0 ? `
@@ -338,7 +337,7 @@ export default { id: user.id, slug: user.slug, name: user.name, - about: user.about, + about: user.about ? user.about : undefined, }, geometry: { type: 'Point', @@ -359,7 +358,7 @@ export default { id: group.id, slug: group.slug, name: group.name, - about: group.about, + about: group.about ? group.about : undefined, }, geometry: { type: 'Point', @@ -379,7 +378,7 @@ export default { id: this.currentUser.id, slug: this.currentUser.slug, name: this.currentUser.name, - about: this.currentUser.about, + about: this.currentUser.about ? this.currentUser.about : undefined, }, geometry: { type: 'Point',