diff --git a/src/app/collaborateurs/collaborateurs.component.html b/src/app/collaborateurs/collaborateurs.component.html index ba9949d..919952b 100644 --- a/src/app/collaborateurs/collaborateurs.component.html +++ b/src/app/collaborateurs/collaborateurs.component.html @@ -65,7 +65,7 @@ Référent -

{{ row.referent.prenom }} {{ row.referent.nom }}

+

{{ row.referent.prenom }} {{ row.referent.nom }}

Aucun référent

diff --git a/src/app/referents/details-referent/details-referent.component.ts b/src/app/referents/details-referent/details-referent.component.ts index 8fd3761..74e001a 100644 --- a/src/app/referents/details-referent/details-referent.component.ts +++ b/src/app/referents/details-referent/details-referent.component.ts @@ -29,7 +29,7 @@ export class DetailsReferentComponent implements OnInit { this.idReferent = this.route.snapshot.paramMap.get("id"); this.referentSubscription = this.service.getCollaborateurById(this.idReferent).subscribe( - referent => this.initReferent(referent[0]), + referent => this.initReferent(referent), err => console.log(err) ) }