diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index c9d53a09dacab..ab5e049e187de 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -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: {