Skip to content

Commit

Permalink
Merge pull request #52 from qlik-oss/saturateMatrix
Browse files Browse the repository at this point in the history
Fixed bug that prevented row saturation
  • Loading branch information
AlbertBackenhof authored Apr 23, 2019
2 parents 75771e4 + a12205c commit 98401db
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 @@ -163,7 +163,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 98401db

Please sign in to comment.