Skip to content

Commit

Permalink
Fix weird beheaviour of compare-save-reset-dialog via cloneDeep
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Aug 2, 2022
1 parent ff47937 commit ed0d4ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
},
revertChanges() {
this.editUser = { ...this.user, ...{ passwordProfile: { password: '' } } }
this.editUser = { ...cloneDeep(this.user), ...{ passwordProfile: { password: '' } } }
Object.values(this.formData).forEach((formDataValue) => {
formDataValue.valid = true
formDataValue.errorMessage = ''
Expand Down

0 comments on commit ed0d4ed

Please sign in to comment.