Add check for null values in table visualization (#10116)

This commit is contained in:
marthasharkey 2024-05-28 17:24:25 +01:00 committed by GitHub
parent 6897f0d30c
commit a9f14b1da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,8 +380,10 @@ watchEffect(() => {
const headerGroupingMap = new Map()
headers.forEach((header) => {
const needsGrouping = rowData.some((row: any) => {
if (header in row && row[header] != null) {
const value = typeof row[header] === 'object' ? row[header].value : row[header]
return value > 9999
}
})
headerGroupingMap.set(header, needsGrouping)
})