mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
✨ Make $item also available in expressions
This commit is contained in:
parent
6c5c5bcf2d
commit
5677d72abd
|
@ -271,6 +271,10 @@ export class WorkflowDataProxy {
|
||||||
$binary: {}, // Placeholder
|
$binary: {}, // Placeholder
|
||||||
$data: {}, // Placeholder
|
$data: {}, // Placeholder
|
||||||
$env: this.envGetter(),
|
$env: this.envGetter(),
|
||||||
|
$item: (itemIndex: number) => {
|
||||||
|
const dataProxy = new WorkflowDataProxy(this.workflow, this.runExecutionData, this.runIndex, itemIndex, this.activeNodeName, this.connectionInputData);
|
||||||
|
return dataProxy.getDataProxy();
|
||||||
|
},
|
||||||
$node: this.nodeGetter(),
|
$node: this.nodeGetter(),
|
||||||
$parameter: this.nodeParameterGetter(this.activeNodeName),
|
$parameter: this.nodeParameterGetter(this.activeNodeName),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue