mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(editor): Support relative dependent parameters for collection NodeProperties (#18916)
This commit is contained in:
@@ -21,7 +21,12 @@ import type {
|
||||
IParameterLabel,
|
||||
NodeParameterValueType,
|
||||
} from 'n8n-workflow';
|
||||
import { CREDENTIAL_EMPTY_VALUE, isResourceLocatorValue, NodeHelpers } from 'n8n-workflow';
|
||||
import {
|
||||
CREDENTIAL_EMPTY_VALUE,
|
||||
isResourceLocatorValue,
|
||||
NodeHelpers,
|
||||
resolveRelativePath,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import type { CodeNodeLanguageOption } from '@/components/CodeNodeEditor/CodeNodeEditor.vue';
|
||||
import CodeNodeEditor from '@/components/CodeNodeEditor/CodeNodeEditor.vue';
|
||||
@@ -376,7 +381,9 @@ const dependentParametersValues = computed<string | null>(() => {
|
||||
const resolvedNodeParameters = workflowHelpers.resolveParameter(currentNodeParameters);
|
||||
|
||||
const returnValues: string[] = [];
|
||||
for (const parameterPath of loadOptionsDependsOn) {
|
||||
for (let parameterPath of loadOptionsDependsOn) {
|
||||
parameterPath = resolveRelativePath(props.path, parameterPath);
|
||||
|
||||
returnValues.push(get(resolvedNodeParameters, parameterPath) as string);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user