diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 3a5d5b29c..b52850bc7 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -24,7 +24,8 @@ import { computed, DestroyRef, inject, - OnInit + OnInit, + signal } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatButtonModule } from '@angular/material/button'; @@ -47,7 +48,7 @@ export class GfHomeOverviewComponent implements OnInit { () => this.deviceDetectorService.deviceInfo().deviceType ); - protected errors: AssetProfileIdentifier[]; + protected readonly errors = signal([]); protected hasImpersonationId: boolean; protected hasPermissionToCreateActivity: boolean; protected historicalDataItems: LineChartItem[] | null; @@ -125,7 +126,7 @@ export class GfHomeOverviewComponent implements OnInit { }) .pipe(takeUntilDestroyed(this.destroyRef)) .subscribe(({ chart, errors, performance }) => { - this.errors = errors ?? []; + this.errors.set(errors ?? []); this.performance = performance; this.historicalDataItems = diff --git a/apps/client/src/app/components/home-overview/home-overview.html b/apps/client/src/app/components/home-overview/home-overview.html index 69c8eb35c..c642c6f18 100644 --- a/apps/client/src/app/components/home-overview/home-overview.html +++ b/apps/client/src/app/components/home-overview/home-overview.html @@ -87,7 +87,7 @@