]> 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)
committerskjnldsv <skjnldsv@protonmail.com>
Fri, 8 Nov 2024 15:20:27 +0000 (16:20 +0100)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/files_sharing/src/components/SharingEntryLink.vue

index 41373ef04307aa5ff49c393b8dcf496684e3b705..eca83847b673198182b3b48ece00f13489c02137 100644 (file)
@@ -594,8 +594,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: {