Commit ed5f36a4c9a71c6201be8f26974bd96028520937
1 parent
3624066b
Fix latest subscription reconnect handling
Showing
1 changed file
with
5 additions
and
1 deletions
... | ... | @@ -277,7 +277,11 @@ export class EntityDataSubscription { |
277 | 277 | dataAggregator.reset(newSubsTw); |
278 | 278 | }); |
279 | 279 | } |
280 | - this.subscriber.setTsOffset(this.subsTw.tsOffset); | |
280 | + if (this.entityDataSubscriptionOptions.type === widgetType.timeseries) { | |
281 | + this.subscriber.setTsOffset(this.subsTw.tsOffset); | |
282 | + } else { | |
283 | + this.subscriber.setTsOffset(this.latestTsOffset); | |
284 | + } | |
281 | 285 | targetCommand.query = this.dataCommand.query; |
282 | 286 | this.subscriber.subscriptionCommands = [targetCommand]; |
283 | 287 | } else { | ... | ... |