From f126bf4f673db99702565ab70c4992827e99ff73 Mon Sep 17 00:00:00 2001 From: Pierre Narcisi Date: Tue, 11 Jun 2024 15:26:02 +0200 Subject: [PATCH] fix(synthese) change variable name --- .../synthese-info-obs/synthese-info-obs.component.html | 2 +- .../synthese-info-obs/synthese-info-obs.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html index 83d91e6187..94ffedc4df 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html @@ -369,7 +369,7 @@

diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts index 70f65eff0d..4a4dc8fe53 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts @@ -118,8 +118,8 @@ export class SyntheseInfoObsComponent implements OnInit, OnChanges { const date_max = new Date(this.selectedObs.date_max); this.selectedObs.date_max = date_max.toLocaleDateString('fr-FR'); for (let actor of this.selectedObs.dataset.cor_dataset_actor) { - if (actor.role) actor.display = actor.role.nom_complet; - else if (actor.organism) actor.display = actor.organism.nom_organisme; + if (actor.role) actor.display_name = actor.role.nom_complet; + else if (actor.organism) actor.display_name = actor.organism.nom_organisme; } const areaDict = {};