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.

This commit is contained in:
elweyn 2023-02-21 10:22:16 +01:00
parent df078f18d8
commit c3b2379af0

View File

@ -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
? `
<hr>
<div>
@ -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',