Commit f79f8069 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Fix bug in Nub.resetDefaultcalculatedParam()

parent d13b5b67
...@@ -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);
......
Markdown is supported
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