From a028109b5d6d07c2747edb0acbb795f6a65173e3 Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Wed, 10 Jul 2019 17:50:13 +0200 Subject: [PATCH] Fixed bug in variated PAB --- .../components/pab-profile-graph/pab-profile-graph.component.ts | 1 - src/app/formulaire/definition/form-compute-pab.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/pab-profile-graph/pab-profile-graph.component.ts b/src/app/components/pab-profile-graph/pab-profile-graph.component.ts index 07f3f8553..fdff7d9a6 100644 --- a/src/app/components/pab-profile-graph/pab-profile-graph.component.ts +++ b/src/app/components/pab-profile-graph/pab-profile-graph.component.ts @@ -110,7 +110,6 @@ export class PabProfileGraphComponent extends ResultsComponent { } public updateView() { - console.log("PPG => updateView() !"); this.generateScatterGraph(); } diff --git a/src/app/formulaire/definition/form-compute-pab.ts b/src/app/formulaire/definition/form-compute-pab.ts index 36c687371..bcde3d155 100644 --- a/src/app/formulaire/definition/form-compute-pab.ts +++ b/src/app/formulaire/definition/form-compute-pab.ts @@ -51,7 +51,7 @@ export class FormComputePab extends FormCompute { pabr.cloisonAvalResults = pab.downWall.result; // cote aval de la passe - if (pab.prms.Z2.hasMultipleValues) { + if (varParams.length > 0) { // find longest list let longest = 0; for (let i = 0; i < varParams.length; i++) { -- GitLab