From 223cd75685c2a2e97a294b2e8891cb3df27d2758 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sun, 29 Aug 2021 14:00:22 +0200 Subject: [PATCH] :zap: Fix spelling --- packages/workflow/src/NodeHelpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/workflow/src/NodeHelpers.ts b/packages/workflow/src/NodeHelpers.ts index 0f46730189..510094c3b7 100644 --- a/packages/workflow/src/NodeHelpers.ts +++ b/packages/workflow/src/NodeHelpers.ts @@ -457,10 +457,10 @@ export function getParameterResolveOrder(nodePropertiesArray: INodeProperties[], let lastIndexLength = indexToResolve.length; let lastIndexReduction = -1; - let itterations = 0 ; + let iterations = 0 ; while (indexToResolve.length !== 0) { - itterations += 1; + iterations += 1; index = indexToResolve.shift() as number; property = nodePropertiesArray[index]; @@ -491,10 +491,10 @@ export function getParameterResolveOrder(nodePropertiesArray: INodeProperties[], resolvedParamters.push(property.name); if (indexToResolve.length < lastIndexLength) { - lastIndexReduction = itterations; + lastIndexReduction = iterations; } - if (itterations > lastIndexReduction + nodePropertiesArray.length) { + if (iterations > lastIndexReduction + nodePropertiesArray.length) { throw new Error('Could not resolve parameter depenencies. Max iterations reached! Hint: If `displayOptions` are specified in any child parameter of a parent `collection` or `fixedCollection`, remove the `displayOptions` from the child parameter.'); } lastIndexLength = indexToResolve.length;