diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 3f68a3c43bcb4..0c0a71f26b758 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -588,10 +588,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: {