mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08: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:
parent
81e98e82fd
commit
c7b74c3c1f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue