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 +=
|
description +=
|
||||||
e.features[0].properties.about &&
|
e.features[0].properties.about &&
|
||||||
e.features[0].properties.about.length > 0 &&
|
e.features[0].properties.about.length > 0
|
||||||
e.features[0].properties.about !== 'null'
|
|
||||||
? `
|
? `
|
||||||
<hr>
|
<hr>
|
||||||
<div>
|
<div>
|
||||||
@ -338,7 +337,7 @@ export default {
|
|||||||
id: user.id,
|
id: user.id,
|
||||||
slug: user.slug,
|
slug: user.slug,
|
||||||
name: user.name,
|
name: user.name,
|
||||||
about: user.about,
|
about: user.about ? user.about : undefined,
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
type: 'Point',
|
type: 'Point',
|
||||||
@ -359,7 +358,7 @@ export default {
|
|||||||
id: group.id,
|
id: group.id,
|
||||||
slug: group.slug,
|
slug: group.slug,
|
||||||
name: group.name,
|
name: group.name,
|
||||||
about: group.about,
|
about: group.about ? group.about : undefined,
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
type: 'Point',
|
type: 'Point',
|
||||||
@ -379,7 +378,7 @@ export default {
|
|||||||
id: this.currentUser.id,
|
id: this.currentUser.id,
|
||||||
slug: this.currentUser.slug,
|
slug: this.currentUser.slug,
|
||||||
name: this.currentUser.name,
|
name: this.currentUser.name,
|
||||||
about: this.currentUser.about,
|
about: this.currentUser.about ? this.currentUser.about : undefined,
|
||||||
},
|
},
|
||||||
geometry: {
|
geometry: {
|
||||||
type: 'Point',
|
type: 'Point',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user