Skip to content

Commit 8e7cbce

Browse files
committed
fix(files_sharing): Allow removing password from link shares
Fixes regression from a28834b Signed-off-by: nfebe <[email protected]>
1 parent 2c6d3d6 commit 8e7cbce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/files_sharing/src/mixins/SharesMixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default {
179179
this.$set(this.share, 'newPassword', await GeneratePassword(true))
180180
} else {
181181
this.passwordProtectedState = false
182-
this.$delete(this.share, 'newPassword')
182+
this.$set(this.share, 'newPassword', '')
183183
}
184184
},
185185
},
@@ -339,7 +339,7 @@ export default {
339339

340340
if (propertyNames.includes('password')) {
341341
// reset password state after sync
342-
this.share.password = this.share.newPassword ?? ''
342+
this.share.password = this.share.newPassword || undefined
343343
this.$delete(this.share, 'newPassword')
344344

345345
// updates password expiration time after sync

0 commit comments

Comments
 (0)