From 86bd26152b71132448cd3e0d5d756bb7bfb176e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Thu, 11 Feb 2021 16:02:34 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20ngOnDestroy=20dans=20le=20composan?= =?UTF-8?q?t=20d'assignation=20du=20r=C3=A9f=C3=A9rentEP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignation-referent.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/referents/assignation-referent/assignation-referent.component.ts b/src/app/referents/assignation-referent/assignation-referent.component.ts index 08c351c..a5f0249 100644 --- a/src/app/referents/assignation-referent/assignation-referent.component.ts +++ b/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({