Skip to content

Commit

Permalink
Fixed bug that prevented row saturation
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Backenhof authored and Albert Backenhof committed Apr 18, 2019
1 parent ebfee69 commit a12205c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initialize-transformed.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a12205c

Please sign in to comment.