Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ikulikov committed Mar 19, 2021
1 parent 393e3f6 commit fbb3d85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ui-ngx/src/app/shared/models/telemetry/telemetry.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ export class TelemetrySubscriber {
private entityCountSubject = new ReplaySubject<EntityCountUpdate>(1);
private reconnectSubject = new Subject();

private zone: NgZone;

private tsOffset = undefined;

public subscriptionCommands: Array<WebsocketCmd>;
Expand All @@ -576,13 +574,12 @@ export class TelemetrySubscriber {
if (keys) {
subscriptionCommand.keys = keys.join(',');
}
const subscriber = new TelemetrySubscriber(telemetryService);
subscriber.zone = zone;
const subscriber = new TelemetrySubscriber(telemetryService, zone);
subscriber.subscriptionCommands.push(subscriptionCommand);
return subscriber;
}

constructor(private telemetryService: TelemetryService) {
constructor(private telemetryService: TelemetryService, private zone?: NgZone) {
this.subscriptionCommands = [];
}

Expand Down

0 comments on commit fbb3d85

Please sign in to comment.