aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue6
1 files 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: {