🐛 Fix issue with default value for multipleValues string with none

stanard default value
This commit is contained in:
Jan Oberhauser
2021-05-19 18:44:27 -05:00
parent b9b6e8b5df
commit e18370cb10
2 changed files with 88 additions and 11 deletions

View File

@@ -612,9 +612,8 @@ export function getNodeParameters(nodePropertiesArray: INodeProperties[], nodeVa
if (nodeValues[nodeProperties.name] !== undefined) {
nodeParameters[nodeProperties.name] = nodeValues[nodeProperties.name];
} else if (returnDefaults === true) {
// Does not have values defined but defaults should be returned which is in the
// case of a collection with multipleValues always an empty array
nodeParameters[nodeProperties.name] = [];
// Does not have values defined but defaults should be returned
nodeParameters[nodeProperties.name] = JSON.parse(JSON.stringify(nodeProperties.default));
}
nodeParametersFull[nodeProperties.name] = nodeParameters[nodeProperties.name];
} else {