diff --git a/src/graphEntry.ts b/src/graphEntry.ts index 8aa5bff..666fec9 100644 --- a/src/graphEntry.ts +++ b/src/graphEntry.ts @@ -509,10 +509,8 @@ export default class GraphEntry { } if (this._config.group_by.start_with_last) { if (index > 0) { - if (bucket.data.length === 0 || bucket.data[0][0] !== bucket.timestamp) { - const prevBucketData = buckets[index - 1].data; - bucket.data.unshift([bucket.timestamp, prevBucketData[prevBucketData.length - 1][1]]); - } + const prevBucketData = buckets[index - 1].data; + bucket.data.unshift([bucket.timestamp, prevBucketData[prevBucketData.length - 1][1]]); } else { const firstIndexAfter = history.data.findIndex((entry) => { if (entry[0] > bucket.timestamp) return true;