fix: Issue with versioned nodes not loading properly (#4094)

This commit is contained in:
Omar Ajoue
2022-09-13 17:46:47 +02:00
committed by GitHub
parent ea2d18b66d
commit 9e1fa4c045

View File

@@ -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}"`);
}