fix(frontend): improve auto data table headers when array of arrays (#3738)

This commit is contained in:
HugoCasa
2024-05-15 12:29:31 +02:00
committed by GitHub
parent db143c38b1
commit bcefc20d34
@@ -30,6 +30,9 @@
let hds: string[] = []
let objs = objects.map((obj) => {
let rowData = obj && typeof obj == 'object' ? obj : {}
if (Array.isArray(rowData)) {
rowData = Object.fromEntries(rowData.map((x, i) => ['col' + i, x]))
}
let ks = Object.keys(rowData)
ks.forEach((x) => {
if (!hds.includes(x)) {