Prevent unnecessary unzipping of data

pull/3022/head
ebb-tide 2018-03-20 15:52:12 -07:00
parent ee620229ae
commit 5aab08f568
1 changed files with 2 additions and 5 deletions

View File

@ -178,11 +178,8 @@ export const timeSeriesToTableGraph = raw => {
const tableData = map(sortedTimeSeries, ({time, values}) => [time, ...values])
const data = tableData.length ? [labels, ...tableData] : [[]]
const unzippedData = _.unzip(data)
return {
data,
unzippedData,
}
return {data}
}
export default timeSeriesToDygraph