From 0c85609bab5e2fa673334e73e32f1148a1abc548 Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Tue, 13 Sep 2022 17:31:45 +0200 Subject: [PATCH] fix: Issue with versioned nodes not loading properly --- packages/cli/src/WorkflowRunnerProcess.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/cli/src/WorkflowRunnerProcess.ts b/packages/cli/src/WorkflowRunnerProcess.ts index 2c2b015ff79f6..74ea198409a93 100644 --- a/packages/cli/src/WorkflowRunnerProcess.ts +++ b/packages/cli/src/WorkflowRunnerProcess.ts @@ -103,13 +103,7 @@ export class WorkflowRunnerProcess { const { className, sourcePath } = this.data.nodeTypeData[nodeTypeName]; try { - const nodeObject = loadClassInIsolation(sourcePath, className); - if (nodeObject.getNodeType !== undefined) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-call - tempNode = nodeObject.getNodeType(); - } else { - tempNode = nodeObject; - } + tempNode = loadClassInIsolation(sourcePath, className); } catch (error) { throw new Error(`Error loading node "${nodeTypeName}" from: "${sourcePath}"`); }