mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Make special variables like $node, $parameter, ... accessible
in Function Nodes
This commit is contained in:
@@ -57,6 +57,10 @@ export class FunctionItem implements INodeType {
|
||||
},
|
||||
};
|
||||
|
||||
// Make it possible to access data via $node, $parameter, ...
|
||||
const dataProxy = this.getWorkflowDataProxy();
|
||||
Object.assign(sandbox, dataProxy);
|
||||
|
||||
const vm = new NodeVM({
|
||||
console: 'inherit',
|
||||
sandbox,
|
||||
|
||||
Reference in New Issue
Block a user