Ajout du ngOnDestroy dans le composant d'assignation du référentEP

develop
Yanaël GRETTE 4 years ago
parent 7855d4fcc5
commit 86bd26152b
  1. 9
      src/app/referents/assignation-referent/assignation-referent.component.ts

@ -135,6 +135,15 @@ export class AssignationReferentComponent {
}
}*/
ngOnDestroy() {
if(this.collaborateurSubscription != undefined) {
this.collaborateurSubscription.unsubscribe();
}
if(this.referentEPSubscription != undefined) {
this.referentEPSubscription.unsubscribe();
}
}
}
@Component({

Loading…
Cancel
Save