]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_sharing): share assignment issue in SharingEntryLink
authorskjnldsv <skjnldsv@protonmail.com>
Fri, 8 Nov 2024 15:13:32 +0000 (16:13 +0100)
committerF. E Noel Nfebe <fenn25.fn@gmail.com>
Fri, 8 Nov 2024 18:03:07 +0000 (19:03 +0100)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/files_sharing/src/components/SharingEntryLink.vue

index b66586e25d813059c22c34a67262aad4c8371402..294f48b5350e227f2fd727ed14116a554d8cd07b 100644 (file)
@@ -532,8 +532,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: {