mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Issue with versioned nodes not loading properly (#4094)
This commit is contained in:
@@ -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}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user