mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(HubSpot Node): Fetching available parameters fails when using expressions (#7672)
This fix affects all nodes, will fix this issue in all nodes Github issue / Community forum post (link here to close automatically): Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
@@ -538,7 +538,7 @@ export function getParameterResolveOrder(
|
||||
*/
|
||||
export function getNodeParameters(
|
||||
nodePropertiesArray: INodeProperties[],
|
||||
nodeValues: INodeParameters,
|
||||
nodeValues: INodeParameters | null,
|
||||
returnDefaults: boolean,
|
||||
returnNoneDisplayed: boolean,
|
||||
node: INode | null,
|
||||
@@ -588,16 +588,17 @@ export function getNodeParameters(
|
||||
nodeValuesRoot = nodeValuesRoot || nodeValuesDisplayCheck;
|
||||
|
||||
// Go through the parameters in order of their dependencies
|
||||
const parameterItterationOrderIndex = getParameterResolveOrder(
|
||||
const parameterIterationOrderIndex = getParameterResolveOrder(
|
||||
nodePropertiesArray,
|
||||
parameterDependencies,
|
||||
);
|
||||
|
||||
for (const parameterIndex of parameterItterationOrderIndex) {
|
||||
for (const parameterIndex of parameterIterationOrderIndex) {
|
||||
const nodeProperties = nodePropertiesArray[parameterIndex];
|
||||
if (
|
||||
nodeValues[nodeProperties.name] === undefined &&
|
||||
(!returnDefaults || parentType === 'collection')
|
||||
!nodeValues ||
|
||||
(nodeValues[nodeProperties.name] === undefined &&
|
||||
(!returnDefaults || parentType === 'collection'))
|
||||
) {
|
||||
// The value is not defined so go to the next
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user