Open denniswieczorek opened 6 months ago
Currently, creation of datums via .fromJs ignores the attribute type if the value is an empty array
.fromJs
const dataset = Dataset.fromJs({ attributes: [ { name: 'x', type: 'SET }] data: [ { x: [] }, { x: ['foo'] } ] }) // dataset.data[0] is a Dataset // dataset.data[1] is a Set
This fix checks attribute type so that there aren't a mix of types on .data
.data
Currently, creation of datums via
.fromJs
ignores the attribute type if the value is an empty arrayThis fix checks attribute type so that there aren't a mix of types on
.data