Merge pull request #3321 from influxdata/fixes/table-data-showing-wrong-data
Return correct value in column for falsey datapull/10616/head
commit
b14a59dbe2
|
@ -147,7 +147,7 @@ export const orderTableColumns = (data, fieldNames) => {
|
|||
})
|
||||
const filteredFieldSortOrder = filter(fieldsSortOrder, f => f !== -1)
|
||||
const orderedData = map(data, row => {
|
||||
return row.map((v, j, arr) => arr[filteredFieldSortOrder[j]] || v)
|
||||
return row.map((__, j, arr) => arr[filteredFieldSortOrder[j]])
|
||||
})
|
||||
return orderedData[0].length ? orderedData : [[]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue