Fixed bug that prevented row saturation

This commit is contained in:
Albert Backenhof
2019-04-18 09:44:07 +02:00
parent ebfee69c7b
commit a12205c840

View File

@@ -161,7 +161,7 @@ function generateDataSet (
// Make sure all rows are saturated, otherwise data risks being displayed in the wrong column
matrix = matrix.map((row, rowIndex) => {
if ((hasSecondDimension && row.length == dimension2.length)
if ((hasSecondDimension && row.length == (dimension2.length * measurements.length))
|| (!hasSecondDimension && row.length == measurements.length)) {
// Row is saturated
return row;