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