mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +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
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
onDataChange({ name, value }: { name: string; value: 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;
|
this.hasUnsavedChanges = true;
|
||||||
|
|
||||||
const { oauthTokenData, ...credData } = this.credentialData;
|
const { oauthTokenData, ...credData } = this.credentialData;
|
||||||
|
|||||||
Reference in New Issue
Block a user