diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-11-08 16:13:32 +0100 |
---|---|---|
committer | nfebe <fenn25.fn@gmail.com> | 2024-12-09 02:50:26 +0100 |
commit | 1b726cdb8e9a03e3a0148241c9d1794cd7c9463b (patch) | |
tree | d01d6845de144f7eb55c4eddde11226a887dbb2e | |
parent | e43aa76a0036dbdc04ca54d2cab4ec2c5f33bde3 (diff) | |
download | nextcloud-server-1b726cdb8e9a03e3a0148241c9d1794cd7c9463b.tar.gz nextcloud-server-1b726cdb8e9a03e3a0148241c9d1794cd7c9463b.zip |
fix(files_sharing): share assignment issue in SharingEntryLink
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 6 |
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: { |