Fix alerts alert on frontend

This commit is contained in:
Matteo Gheza 2023-10-25 18:21:08 +02:00
parent f05a59bf25
commit a6a4b863bf
1 changed files with 1 additions and 1 deletions

View File

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