From a12205c8408404a1182ebe2de37f87c613d140fa Mon Sep 17 00:00:00 2001 From: Albert Backenhof Date: Thu, 18 Apr 2019 09:44:07 +0200 Subject: [PATCH] Fixed bug that prevented row saturation --- src/initialize-transformed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initialize-transformed.js b/src/initialize-transformed.js index f7a5b77..82d1003 100644 --- a/src/initialize-transformed.js +++ b/src/initialize-transformed.js @@ -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;