Merge pull request #3321 from influxdata/fixes/table-data-showing-wrong-data

Return correct value in column for falsey data
pull/10616/head
Brandon Farmer 2018-04-26 17:10:16 -07:00 committed by GitHub
commit b14a59dbe2
1 changed files with 1 additions and 1 deletions

View File

@ -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 : [[]]
}