Fix alerts alert on frontend
This commit is contained in:
parent
f05a59bf25
commit
a6a4b863bf
|
@ -40,7 +40,7 @@ export class AppComponent {
|
||||||
if(this.auth.profile.id) {
|
if(this.auth.profile.id) {
|
||||||
this.api.get("alerts", {}, this.alertsEtag).then((response) => {
|
this.api.get("alerts", {}, this.alertsEtag).then((response) => {
|
||||||
if(this.api.isLastSame) return;
|
if(this.api.isLastSame) return;
|
||||||
this.alerts = response;
|
this.alerts = response !== null ? response : [];
|
||||||
this.alertsEtag = this.api.lastEtag;
|
this.alertsEtag = this.api.lastEtag;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue