diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index 324bfb3d344..a1580e3a792 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -179,7 +179,7 @@ export default { this.$set(this.share, 'newPassword', await GeneratePassword(true)) } else { this.passwordProtectedState = false - this.$delete(this.share, 'newPassword') + this.$set(this.share, 'newPassword', '') } }, }, @@ -339,7 +339,7 @@ export default { if (propertyNames.includes('password')) { // reset password state after sync - this.share.password = this.share.newPassword ?? '' + this.share.password = this.share.newPassword || undefined this.$delete(this.share, 'newPassword') // updates password expiration time after sync