mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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) {
|
get(target, name, receiver) {
|
||||||
const nodeName = name.toString();
|
const nodeName = name.toString();
|
||||||
|
|
||||||
|
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
|
// 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,
|
// failExecution: true,
|
||||||
// });
|
});
|
||||||
// }
|
}
|
||||||
|
|
||||||
return that.nodeDataGetter(nodeName);
|
return that.nodeDataGetter(nodeName);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue