fix(core): Fix resolve RL values in expressions (#4173)

* update interface

* update expression resolving

* 🔥 remove ExtractValue functions

* add flags

* update resolving

* update expr

* fix for list mode

* clean up

* Fix up

* update guard

* fix bug with switching

* update to handle expr referencing

* fix legacy expression

* fix when switching

* update spacing

Co-authored-by: Valya Bullions <valya@n8n.io>
This commit is contained in:
Mutasem Aldmour
2022-09-22 19:04:26 +02:00
committed by GitHub
parent d01f7d4d93
commit 469c391fee
12 changed files with 85 additions and 361 deletions

View File

@@ -153,7 +153,7 @@ export default mixins(
parameterData = {
node: this.node.name,
name: this.path,
value: { value: updatedValue, mode: '' },
value: { __rl: true, value: updatedValue, mode: '' },
};
}
else if (this.value.mode === 'list' && this.parameter.modes && this.parameter.modes.length > 1) {
@@ -165,14 +165,14 @@ export default mixins(
parameterData = {
node: this.node.name,
name: this.path,
value: { value: updatedValue, mode: mode ? mode.name : '' },
value: { __rl: true, value: updatedValue, mode: mode ? mode.name : '' },
};
}
else {
parameterData = {
node: this.node.name,
name: this.path,
value: { value: updatedValue, mode: this.value.mode },
value: { __rl: true, value: updatedValue, mode: this.value.mode },
};
}