mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(editor): Support relative dependent parameters for collection NodeProperties (#18916)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import get from 'lodash/get';
|
||||
import { ApplicationError, Workflow } from 'n8n-workflow';
|
||||
import { ApplicationError, resolveRelativePath, Workflow } from 'n8n-workflow';
|
||||
import type {
|
||||
INodeParameterResourceLocator,
|
||||
IWorkflowExecuteAdditionalData,
|
||||
@@ -61,9 +61,7 @@ export class LocalLoadOptionsContext implements ILocalLoadOptionsFunctions {
|
||||
getCurrentNodeParameter(parameterPath: string): NodeParameterValueType | object | undefined {
|
||||
const nodeParameters = this.additionalData.currentNodeParameters;
|
||||
|
||||
if (parameterPath.startsWith('&')) {
|
||||
parameterPath = `${this.path.split('.').slice(1, -1).join('.')}.${parameterPath.slice(1)}`;
|
||||
}
|
||||
parameterPath = resolveRelativePath(this.path, parameterPath);
|
||||
|
||||
return get(nodeParameters, parameterPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user