mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix bug that Option with value 0 could not be selected
This commit is contained in:
@@ -321,8 +321,8 @@ export function getNodeParameters(nodePropertiesArray: INodeProperties[], nodeVa
|
||||
|
||||
if (returnDefaults === true) {
|
||||
// Set also when it has the default value
|
||||
if (['boolean', 'number'].includes(nodeProperties.type)) {
|
||||
// Boolean and numbers are special as false and 0 are valid values
|
||||
if (['boolean', 'number', 'options'].includes(nodeProperties.type)) {
|
||||
// Boolean, numbers and options are special as false and 0 are valid values
|
||||
// and should not be replaced with default value
|
||||
nodeParameters[nodeProperties.name] = nodeValues[nodeProperties.name] !== undefined ? nodeValues[nodeProperties.name] : nodeProperties.default;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user