diff --git a/src/nub.ts b/src/nub.ts index 811cf5a76b0f0cee28face1ec0b3f3398448525e..b53b73f6a6cfdb1216435f883419d178ad1b279c 100644 --- a/src/nub.ts +++ b/src/nub.ts @@ -1,7 +1,7 @@ import { CalculatorType, ComputeNode } from "./compute-node"; // nghyd build fails when commenting CalculatorType @WTF import { Dichotomie } from "./dichotomie"; -import { acSection, IParamDefinitionIterator, ParamDefinition, ParamsEquation, ParamsEquationArrayIterator, - Session, Structure } from "./index"; +import { acSection, IParamDefinitionIterator, Pab, ParamDefinition, ParamsEquation, + ParamsEquationArrayIterator, Session, Structure } from "./index"; import { LinkedValue } from "./linked-value"; import { ParamCalculability } from "./param/param-definition"; import { ParamValueMode } from "./param/param-value-mode"; @@ -500,9 +500,11 @@ export abstract class Nub extends ComputeNode implements IObservable { } } - // 3. children Nubs - for (const cn of this.getChildren()) { - res = res.concat(cn.getLinkableValues(src)); + // 3. children Nubs, except for PAB + if (! (this instanceof Pab)) { + for (const cn of this.getChildren()) { + res = res.concat(cn.getLinkableValues(src)); + } } return res;