From 1b726cdb8e9a03e3a0148241c9d1794cd7c9463b Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 8 Nov 2024 16:13:32 +0100 Subject: fix(files_sharing): share assignment issue in SharingEntryLink Signed-off-by: skjnldsv --- apps/files_sharing/src/components/SharingEntryLink.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index f6e162b7d87..8feeb92990e 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -539,8 +539,10 @@ export default { } }, mounted() { - this.defaultExpirationDateEnabled = this.config.defaultExpirationDate instanceof Date - this.share.expireDate = this.defaultExpirationDateEnabled ? this.formatDateToString(this.config.defaultExpirationDate) : '' + if (this.share) { + this.defaultExpirationDateEnabled = this.config.defaultExpirationDate instanceof Date + this.share.expireDate = this.defaultExpirationDateEnabled ? this.formatDateToString(this.config.defaultExpirationDate) : '' + } }, methods: { -- cgit v1.2.3