From 8e7cbcea40aeb16e13e7441ef53430089bf22f48 Mon Sep 17 00:00:00 2001 From: nfebe Date: Fri, 28 Nov 2025 12:28:49 +0100 Subject: [PATCH] fix(files_sharing): Allow removing password from link shares Fixes regression from a28834b163c Signed-off-by: nfebe --- apps/files_sharing/src/mixins/SharesMixin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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