Commit ed5f36a4c9a71c6201be8f26974bd96028520937

Authored by Igor Kulikov
1 parent 3624066b

Fix latest subscription reconnect handling

@@ -277,7 +277,11 @@ export class EntityDataSubscription { @@ -277,7 +277,11 @@ export class EntityDataSubscription {
277 dataAggregator.reset(newSubsTw); 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 targetCommand.query = this.dataCommand.query; 285 targetCommand.query = this.dataCommand.query;
282 this.subscriber.subscriptionCommands = [targetCommand]; 286 this.subscriber.subscriptionCommands = [targetCommand];
283 } else { 287 } else {