Prevent unnecessary update after alerts load

This commit is contained in:
Matteo Gheza 2022-03-11 23:41:20 +01:00
parent da0f1aa362
commit 83e5995b1c
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,9 @@ export class ModalAlertComponent implements OnInit, OnDestroy {
console.log(response);
this.users = response.crew;
if (response.notes !== "" && response.notes !== null) {
this.notes = response.notes;
if(this.notes !== response.notes) {
this.notes = response.notes;
}
}
});
}