diff --git a/src/ChunksOfSink.js b/src/ChunksOfSink.js index 6c0de46..7a6bd45 100644 --- a/src/ChunksOfSink.js +++ b/src/ChunksOfSink.js @@ -23,6 +23,7 @@ export class ChunksOfSink { end (time, value) { if (this.length > 0) { + this.xs.length = this.length; this.sink.event(time, this.xs) } return this.sink.end(time, value)