mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
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:
parent
df078f18d8
commit
c3b2379af0
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user