Skip to content
Snippets Groups Projects
Commit ea9b4d12 authored by mathias.chouet's avatar mathias.chouet
Browse files

MacrorugoCompound and PAB: fix bug in variable selector index when switching...

MacrorugoCompound and PAB: fix bug in variable selector index when switching from variable mode to fixed mode
parent e591193e
No related branches found
Tags 4.1.0
No related merge requests found
Pipeline #137644 passed
......@@ -17,6 +17,10 @@ export class FormComputeMacrorugoCompound extends FormCompute {
protected compute() {
this.runNubCalc(this._formBase.currentNub);
// reset variable index to avoid trying to access an index > 0 when nothing varies
const mrcr = this.formResult.mrcResults;
mrcr.variableIndex = 0;
this.reaffectResultComponents();
}
......
......@@ -17,6 +17,10 @@ export class FormComputePab extends FormCompute {
protected compute() {
this.runNubCalc(this._formBase.currentNub);
// reset variable index to avoid trying to access an index > 0 when nothing varies
const pabr = this.formResult.pabResults;
pabr.variableIndex = 0;
this.reaffectResultComponents();
}
......
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