mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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) {
|
if (returnDefaults === true) {
|
||||||
// Set also when it has the default value
|
// Set also when it has the default value
|
||||||
if (['boolean', 'number'].includes(nodeProperties.type)) {
|
if (['boolean', 'number', 'options'].includes(nodeProperties.type)) {
|
||||||
// Boolean and numbers are special as false and 0 are valid values
|
// Boolean, numbers and options are special as false and 0 are valid values
|
||||||
// and should not be replaced with default value
|
// and should not be replaced with default value
|
||||||
nodeParameters[nodeProperties.name] = nodeValues[nodeProperties.name] !== undefined ? nodeValues[nodeProperties.name] : nodeProperties.default;
|
nodeParameters[nodeProperties.name] = nodeValues[nodeProperties.name] !== undefined ? nodeValues[nodeProperties.name] : nodeProperties.default;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user