mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
fix(core): Ensure getNodeOutputs always returns an array (#19069)
This commit is contained in:
@@ -1047,12 +1047,15 @@ export function getNodeOutputs(
|
||||
} else {
|
||||
// Calculate the outputs dynamically
|
||||
try {
|
||||
outputs = (workflow.expression.getSimpleParameterValue(
|
||||
const result = workflow.expression.getSimpleParameterValue(
|
||||
node,
|
||||
nodeTypeData.outputs,
|
||||
'internal',
|
||||
{},
|
||||
) || []) as NodeConnectionType[];
|
||||
);
|
||||
outputs = Array.isArray(result)
|
||||
? (result as Array<NodeConnectionType | INodeOutputConfiguration>)
|
||||
: [];
|
||||
} catch (e) {
|
||||
console.warn('Could not calculate outputs dynamically for node: ', node.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user