Skip to content

Commit

Permalink
fix(files_sharing): Stop overwriting the share expiration date with t…
Browse files Browse the repository at this point in the history
…he default expiration date

Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and susnux committed Jan 15, 2025
1 parent 47eedf9 commit 260e82a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/files_sharing/src/components/SharingEntryLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,7 @@ export default {
},
},
mounted() {
if (this.share) {
this.defaultExpirationDateEnabled = this.config.defaultExpirationDate instanceof Date
this.share.expireDate = this.defaultExpirationDateEnabled ? this.formatDateToString(this.config.defaultExpirationDate) : ''
}
this.defaultExpirationDateEnabled = this.config.defaultExpirationDate instanceof Date
},

methods: {
Expand Down

0 comments on commit 260e82a

Please sign in to comment.