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; }); }