Closed
Description
Aggregations are scooped out of incoming transform here:
https://github.com/plotly/plotly.js/blob/master/src/transforms/aggregate.js#L158
and we check the length here:
https://github.com/plotly/plotly.js/blob/master/src/transforms/aggregate.js#L159
But later we check if it is defined at all:
https://github.com/plotly/plotly.js/blob/master/src/transforms/aggregate.js#L166
Partial aggregation transforms are easily composed in a UI and sending a partially complete transform without aggregations defined results in:
Cannot read property 'length' of undefined TypeError: Cannot read property 'length' of undefined
on line https://github.com/plotly/plotly.js/blob/master/src/transforms/aggregate.js#L159