Closed ddecrulle closed 6 days ago
On my opinion, the size of an empty array [] should be 0.
[]
I tested in storybook to do :
count(ds)
with bindings
{ "ds": { "dataStructure": { "col_1": { "name": "col_1", "role": "MEASURE" } }, "dataPoints": { "col_1": [ ] } } }
which throw error.
This line cause this issue : https://github.com/InseeFr/Trevas-JS/blob/master/packages/trevas/src/utils/datasets/operations.js#L72
r is undefined
Yes, it should be 0. Bug approved
On my opinion, the size of an empty array
[]
should be 0.I tested in storybook to do :
count(ds)
with bindings
which throw error.