Skip to content

Commit

Permalink
Update StreamFilter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Dec 16, 2024
1 parent a7e0694 commit 5cc69bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/engine/utils/StreamFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Check failure on line 18 in app/engine/utils/StreamFilter.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'datapoint' is not defined

Check failure on line 18 in app/engine/utils/StreamFilter.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'datapoint' is not defined
lastRawDatapoint = dataPoint
dataPoints.push(dataPoint)
cleanDatapoint = dataPoints.median()
Expand Down

0 comments on commit 5cc69bf

Please sign in to comment.