fix: Prevent error when importing nodes with malformed collection params (#17580)

This commit is contained in:
oleg
2025-07-24 09:40:10 +02:00
committed by GitHub
parent f30cc7b6cf
commit 4713827813
2 changed files with 102 additions and 0 deletions

View File

@@ -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