Update alarm-data.service.ts

This commit is contained in:
Igor Kulikov 2023-12-05 17:37:38 +02:00 committed by GitHub
parent 89dbb7b54a
commit 910dde39ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export class AlarmDataService {
listener.alarmDataSubscriptionOptions = this.createAlarmSubscriptionOptions(listener, pageLink, keyFilters);
if (alarmSource.type === DatasourceType.entity && (!alarmSource.entityFilter || !pageLink)) {
listener.alarmsLoaded(emptyPageData<AlarmData>(), 0, 0);
return of(null);
return;
}
listener.subscription = new AlarmDataSubscription(listener, this.telemetryService);
return listener.subscription.subscribe();