mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Ensure default credential values are not detected as dirty state (#6677)
* fix(editor): Ensure default credential values are not detected as dirty state * chore: Remove logging * refactor: Improve comment
This commit is contained in:
@@ -674,6 +674,9 @@ export default defineComponent({
|
||||
},
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
onDataChange({ name, value }: { name: string; value: any }) {
|
||||
// skip update if new value matches the current
|
||||
if (this.credentialData[name] === value) return;
|
||||
|
||||
this.hasUnsavedChanges = true;
|
||||
|
||||
const { oauthTokenData, ...credData } = this.credentialData;
|
||||
|
||||
Reference in New Issue
Block a user