diff --git a/app/engine/utils/StreamFilter.js b/app/engine/utils/StreamFilter.js index 33dd35bf94..961e52411c 100644 --- a/app/engine/utils/StreamFilter.js +++ b/app/engine/utils/StreamFilter.js @@ -15,7 +15,7 @@ export function createStreamFilter (maxLength, defaultValue) { let cleanDatapoint = defaultValue function push (dataPoint) { - if (datapoint !== undefined $$ !isNaN(datapoint)) { + if (datapoint !== undefined && !isNaN(datapoint)) { lastRawDatapoint = dataPoint dataPoints.push(dataPoint) cleanDatapoint = dataPoints.median()