Fix in data processing, correct index

This commit is contained in:
Martin Bauer 2021-07-23 10:33:35 +02:00
parent a307e2a4ea
commit db3589c86d
1 changed files with 1 additions and 1 deletions

View File

@ -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