Skip to content

Commit

Permalink
Fix latest subscription reconnect handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ikulikov committed Mar 19, 2021
1 parent 3624066 commit ed5f36a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui-ngx/src/app/core/api/entity-data-subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ export class EntityDataSubscription {
dataAggregator.reset(newSubsTw);
});
}
this.subscriber.setTsOffset(this.subsTw.tsOffset);
if (this.entityDataSubscriptionOptions.type === widgetType.timeseries) {
this.subscriber.setTsOffset(this.subsTw.tsOffset);
} else {
this.subscriber.setTsOffset(this.latestTsOffset);
}
targetCommand.query = this.dataCommand.query;
this.subscriber.subscriptionCommands = [targetCommand];
} else {
Expand Down

0 comments on commit ed5f36a

Please sign in to comment.