mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Throw error in UI on expression referencing missing node but do not fail execution (#5158)
fix(core): Throw error in UI on expression referencing missing node but do not fail execution
This commit is contained in:
@@ -575,14 +575,14 @@ export class WorkflowDataProxy {
|
|||||||
get(target, name, receiver) {
|
get(target, name, receiver) {
|
||||||
const nodeName = name.toString();
|
const nodeName = name.toString();
|
||||||
|
|
||||||
// TODO: re-enable this for v1.0.0 release
|
if (that.workflow.getNode(nodeName) === null) {
|
||||||
// if (that.workflow.getNode(nodeName) === null) {
|
throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||||
// throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
runIndex: that.runIndex,
|
||||||
// runIndex: that.runIndex,
|
itemIndex: that.itemIndex,
|
||||||
// itemIndex: that.itemIndex,
|
// TODO: re-enable this for v1.0.0 release
|
||||||
// failExecution: true,
|
// failExecution: true,
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
return that.nodeDataGetter(nodeName);
|
return that.nodeDataGetter(nodeName);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user