diff options
author | Emiliano Ciavatta | 2020-10-16 13:26:55 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-16 13:26:55 +0000 |
commit | d429a344ef34bb9289616dc7ca11c161fabce5d7 (patch) | |
tree | 664d56822eac93568f44c40ca25be725d1dd81c8 /frontend/src/components/Timeline.js | |
parent | 5534413b3a3e6e783310be8147ac8340d3098a7e (diff) |
Refactor js arrow functions
Diffstat (limited to 'frontend/src/components/Timeline.js')
-rw-r--r-- | frontend/src/components/Timeline.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/Timeline.js b/frontend/src/components/Timeline.js index 94fa4d0..9ecbd80 100644 --- a/frontend/src/components/Timeline.js +++ b/frontend/src/components/Timeline.js @@ -127,7 +127,7 @@ class Timeline extends Component { const series = new TimeSeries({ name: "statistics", columns: ["time"].concat(columns), - points: zeroFilledMetrics.map((m) => [m["range_start"]].concat(columns.map(c => + points: zeroFilledMetrics.map((m) => [m["range_start"]].concat(columns.map((c) => ((metric in m) && (m[metric] != null)) ? (m[metric][c] || 0) : 0 ))) }); |