Commit 1070bae6 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Linkable params: prevent links to MRC children

Showing with 3 additions and 3 deletions
+3 -3
import { CalculatorType, ComputeNode } from "./compute-node";
import { Dichotomie } from "./dichotomie";
import { acSection, IParamDefinitionIterator, Pab, ParamDefinition, ParamsEquation,
import { acSection, IParamDefinitionIterator, MacrorugoCompound, Pab, ParamDefinition, ParamsEquation,
ParamsEquationArrayIterator, Session, Structure } from "./index";
import { LinkedValue } from "./linked-value";
import { ParamCalculability, ParamFamily } from "./param/param-definition";
......@@ -580,8 +580,8 @@ export abstract class Nub extends ComputeNode implements IObservable {
}
}
// 3. children Nubs, except for PAB
if (! (this instanceof Pab)) {
// 3. children Nubs, except for PAB and MRC
if (! (this instanceof Pab || this instanceof MacrorugoCompound)) {
for (const cn of this.getChildren()) {
res = res.concat(cn.getLinkableValues(src));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment