Skip to content

Commit

Permalink
fix: Issue with versioned nodes not loading properly (#4094)
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble authored Sep 13, 2022
1 parent ea2d18b commit 9e1fa4c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/cli/src/WorkflowRunnerProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`);
}
Expand Down

0 comments on commit 9e1fa4c

Please sign in to comment.