1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-04 13:15:24 +00:00

Fix chart rendering with null or false values in group by

This commit is contained in:
Petr Stribny 2025-03-06 02:25:03 +00:00
parent 5c558f3b12
commit 4475a6795e

View file

@ -74,8 +74,8 @@ export default {
this.dataSource.schema.properties
).find((item) => item.metadata?.primary === true)
const labels = this.result.map((item) => {
if (item[`field_${groupByFieldId}`]) {
return item[`field_${groupByFieldId}`]
if (item[`field_${groupByFieldId}`] !== undefined) {
return item[`field_${groupByFieldId}`] ?? ''
}
return item[`field_${primaryField.metadata.id}`]
})