Skip to content

Commit

Permalink
Don't record null values.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Jun 17, 2024
1 parent 9061d00 commit fabb516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/trackData.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const TrackData = types.model({
}
}

if (!prevValue || prevValue[0] !== value[0]) {
if (value[0] && (!prevValue || prevValue[0] !== value[0])) {
// Value has changed! How exciting
// console.log(label, prevValue[0], '==>', value[0]);
self.series.get(label).data.push(Datum.create({
Expand Down

0 comments on commit fabb516

Please sign in to comment.