Commit 7930e1f4 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Fix bug in linked parameters loop detection

Showing with 8 additions and 5 deletions
+8 -5
...@@ -284,13 +284,16 @@ export abstract class Nub extends ComputeNode { ...@@ -284,13 +284,16 @@ export abstract class Nub extends ComputeNode {
} }
thisFamily = thisFamily.concat(this.getChildren()); thisFamily = thisFamily.concat(this.getChildren());
let yourFamily: Nub[] = [];
const you = Session.getInstance().findNubByUid(uid); const you = Session.getInstance().findNubByUid(uid);
let yourFamily: Nub[] = [you]; if (you) {
const yp = you.getParent(); yourFamily = [you];
if (yp) { const yp = you.getParent();
yourFamily = yourFamily.concat(yp); if (yp) {
yourFamily = yourFamily.concat(yp);
}
yourFamily = yourFamily.concat(you.getChildren());
} }
yourFamily = yourFamily.concat(you.getChildren());
let depends = false; let depends = false;
......
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