Browse Source

filter content in popup from null entries

pull/5247/head
flisowna 2 years ago
parent
commit
84bb37267d
  1. 3
      packages/nc-gui/components/smartsheet/Map.vue

3
packages/nc-gui/components/smartsheet/Map.vue

@ -194,8 +194,9 @@ watch([formattedData, mapMetaData, markersClusterGroupRef], () => {
}
const listItems = Object.entries(row.row)
.filter(([key, val]) => val !== null)
.map(([key, val]) => {
const prettyVal = val !== null && (typeof val === 'object' || Array.isArray(val)) ? JSON.stringify(val) : val
const prettyVal = typeof val === 'object' || Array.isArray(val) ? JSON.stringify(val) : val
return `<li><b>${key}</b>: <br/>${prettyVal}</li>`
})
.join('')

Loading…
Cancel
Save