Skip to content

Commit

Permalink
FIX: samples() -> ensure info object is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcastillo committed Nov 30, 2022
1 parent 86cd2b2 commit 78dad05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pipes/utility/samples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const samples = () =>
const timestamp = info.startTime + sampleOffset;
const sample: ISample = {
data,
timestamp
timestamp,
...(info ? { info } : {})
};

samples.push(sample);
Expand Down

0 comments on commit 78dad05

Please sign in to comment.