From a6a4b863bfa0b63c236a519e301cecc0e6b61813 Mon Sep 17 00:00:00 2001 From: Matteo Gheza Date: Wed, 25 Oct 2023 18:21:08 +0200 Subject: [PATCH] Fix alerts alert on frontend --- frontend/src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index e4838aa..9b83a05 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -40,7 +40,7 @@ export class AppComponent { if(this.auth.profile.id) { this.api.get("alerts", {}, this.alertsEtag).then((response) => { if(this.api.isLastSame) return; - this.alerts = response; + this.alerts = response !== null ? response : []; this.alertsEtag = this.api.lastEtag; }); }