From f28707fdc25bbd69a4bbb5eeccb4747eb758b409 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Thu, 16 May 2019 15:25:18 +0200
Subject: [PATCH] #211 : links to other parameters are not linkable anymore

---
 src/nub.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nub.ts b/src/nub.ts
index 7e045cfa..811cf5a7 100644
--- a/src/nub.ts
+++ b/src/nub.ts
@@ -474,7 +474,10 @@ export abstract class Nub extends ComputeNode implements IObservable {
                             // trick to expose p a a result of the parent Nub
                             res.push(new LinkedValue(this.parent, p, p.symbol));
                         } else {
-                            res.push(new LinkedValue(this, p, p.symbol));
+                            // do not suggest parameters that are already linked to another one
+                            if (p.valueMode !== ParamValueMode.LINK) {
+                                res.push(new LinkedValue(this, p, p.symbol));
+                            }
                         }
                     }
                 }
-- 
GitLab