From db3589c86df66e34fb3450e97cce7d3c4b879706 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Fri, 23 Jul 2021 10:33:35 +0200 Subject: [PATCH] Fix in data processing, correct index --- data_processing/DataAnalysis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_processing/DataAnalysis.js b/data_processing/DataAnalysis.js index 8b75bbe..c4ef3e6 100644 --- a/data_processing/DataAnalysis.js +++ b/data_processing/DataAnalysis.js @@ -25,7 +25,7 @@ export default class DataAnalysis { newData = allMeasurements; console.log("cache reset"); } - const allMeasurementsSize = newData.size ? newData.size : newData.length; + const allMeasurementsSize = allMeasurements.size ? allMeasurements.size : allMeasurements.length; const newDataArr = (typeof newData.toArray ==="function") ? newData.toArray() : newData; // active time