Skip to content

Commit

Permalink
fix(editor): Ensure default credential values are not detected as dir…
Browse files Browse the repository at this point in the history
…ty state (#6677)

* fix(editor): Ensure default credential values are not detected as dirty state

* chore: Remove logging

* refactor: Improve comment
  • Loading branch information
ivov authored and netroy committed Jul 19, 2023
1 parent fbf763d commit ff8a2c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,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;
Expand Down

0 comments on commit ff8a2c5

Please sign in to comment.