mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
⚡ Fix errors in expression editor
This commit is contained in:
@@ -183,7 +183,12 @@ export default mixins(
|
|||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
// Contains probably no expression with a missing parameter so resolve
|
// Contains probably no expression with a missing parameter so resolve
|
||||||
|
try {
|
||||||
nodeValues[key] = this.resolveExpression(rawValues[key], nodeValues) as NodeParameterValue;
|
nodeValues[key] = this.resolveExpression(rawValues[key], nodeValues) as NodeParameterValue;
|
||||||
|
} catch (e) {
|
||||||
|
// If expression is invalid ignore
|
||||||
|
nodeValues[key] = '';
|
||||||
|
}
|
||||||
parameterGotResolved = true;
|
parameterGotResolved = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -215,6 +220,9 @@ export default mixins(
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filteredParameterNames(newValue, oldValue) {
|
filteredParameterNames(newValue, oldValue) {
|
||||||
|
if (newValue === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// After a parameter does not get displayed anymore make sure that its value gets removed
|
// After a parameter does not get displayed anymore make sure that its value gets removed
|
||||||
// Is only needed for the edge-case when a parameter gets displayed depending on another field
|
// Is only needed for the edge-case when a parameter gets displayed depending on another field
|
||||||
// which contains an expression.
|
// which contains an expression.
|
||||||
|
|||||||
Reference in New Issue
Block a user