Skip to content

Commit 1dc44bb

Browse files
YEriinpaveltiunov
authored andcommitted
fix: empty array reduce error in stackedChartData (#211)
1 parent f77600e commit 1dc44bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-playground/src/libraries/bizChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const stackedChartData = (resultSet) => {
4747
color: resultSet.axisValuesString(yValues, ', '),
4848
measure: m && Number.parseFloat(m)
4949
}))
50-
).reduce((a, b) => a.concat(b));
50+
).reduce((a, b) => a.concat(b), []);
5151
5252
return data;
5353
}

0 commit comments

Comments
 (0)