Skip to content
Snippets Groups Projects
Commit d3fdbdff authored by François Grand's avatar François Grand
Browse files

refactor: remove PressureLossLaw.calcTypeFromPressureLossLaw

refs #596
parent c2524ad3
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!200Resolve "Conduites en charge : ajouter loi de Strickler"
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment