diff --git a/src/app/formulaire/definition/form-pressureloss.ts b/src/app/formulaire/definition/form-pressureloss.ts index 6bf3e7b894f37852aaf04ffc64fc428af801e48b..f574114b12678bc0acc2526df7470ab48e8c1f44 100644 --- a/src/app/formulaire/definition/form-pressureloss.ts +++ b/src/app/formulaire/definition/form-pressureloss.ts @@ -27,8 +27,7 @@ export class FormulairePressureLoss extends FormulaireFixedVar { // create pressure loss law child nub const propsLaw: Props = new Props(); - const pressureLossCalc: CalculatorType = PressureLossLaw.calcTypeFromPressureLossLaw[pll]; - propsLaw.setPropValue("calcType", pressureLossCalc); + propsLaw.setPropValue("calcType", CalculatorType.PressureLossLaw); const law = Session.getInstance().createNub(propsLaw) as PressureLossLaw; const pl: PressureLoss = this.currentNub as PressureLoss; pl.setLaw(law);