mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Prevent updating node parameter value if it hasn't changed (#9535)
This commit is contained in:
committed by
GitHub
parent
f914c97d11
commit
63990f14e3
@@ -1189,6 +1189,13 @@ function valueChanged(value: NodeParameterValueType | {} | Date) {
|
||||
if (remoteParameterOptionsLoading.value) {
|
||||
return;
|
||||
}
|
||||
// Only update the value if it has changed
|
||||
const oldValue = node.value?.parameters
|
||||
? nodeHelpers.getParameterValue(node.value?.parameters, props.parameter.name, '')
|
||||
: undefined;
|
||||
if (oldValue !== undefined && oldValue === value) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (props.parameter.name === 'nodeCredentialType') {
|
||||
activeCredentialType.value = value as string;
|
||||
|
||||
Reference in New Issue
Block a user