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

Fix bug in Nub.resetDefaultcalculatedParam()

Showing with 1 addition and 6 deletions
+1 -6
...@@ -251,12 +251,7 @@ export abstract class Nub extends ComputeNode implements IObservable { ...@@ -251,12 +251,7 @@ export abstract class Nub extends ComputeNode implements IObservable {
// if default calculated param is not eligible to CALC mode // if default calculated param is not eligible to CALC mode
if ( if (
requirer === this._defaultCalculatedParam requirer === this._defaultCalculatedParam
|| ! [ || this._defaultCalculatedParam.valueMode === ParamValueMode.LINK
ParamValueMode.SINGLE,
ParamValueMode.MINMAX,
ParamValueMode.LISTE
].includes(this._defaultCalculatedParam.valueMode
)
) { ) {
// first SINGLE calculable parameter if any // first SINGLE calculable parameter if any
const newCalculatedParam = this.findFirstCalculableParameter(requirer); const newCalculatedParam = this.findFirstCalculableParameter(requirer);
......
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