mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
fix: Prevent error when importing nodes with malformed collection params (#17580)
This commit is contained in:
@@ -835,6 +835,10 @@ export function getNodeParameters(
|
||||
// Multiple can be set so will be an array
|
||||
|
||||
const tempArrayValue: INodeParameters[] = [];
|
||||
// Collection values should always be an object
|
||||
if (typeof propertyValues !== 'object' || Array.isArray(propertyValues)) {
|
||||
continue;
|
||||
}
|
||||
// Iterate over all items as it contains multiple ones
|
||||
for (const nodeValue of (propertyValues as INodeParameters)[
|
||||
itemName
|
||||
|
||||
Reference in New Issue
Block a user