mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08: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:
parent
146bc3bff5
commit
c9e158e458
|
@ -575,14 +575,14 @@ export class WorkflowDataProxy {
|
|||
get(target, name, receiver) {
|
||||
const nodeName = name.toString();
|
||||
|
||||
// TODO: re-enable this for v1.0.0 release
|
||||
// if (that.workflow.getNode(nodeName) === null) {
|
||||
// throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||
// runIndex: that.runIndex,
|
||||
// itemIndex: that.itemIndex,
|
||||
// failExecution: true,
|
||||
// });
|
||||
// }
|
||||
if (that.workflow.getNode(nodeName) === null) {
|
||||
throw new ExpressionError(`"${nodeName}" node doesn't exist`, {
|
||||
runIndex: that.runIndex,
|
||||
itemIndex: that.itemIndex,
|
||||
// TODO: re-enable this for v1.0.0 release
|
||||
// failExecution: true,
|
||||
});
|
||||
}
|
||||
|
||||
return that.nodeDataGetter(nodeName);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue