diff --git a/src/Components/File/File.vue b/src/Components/File/File.vue index 4b945829d5..351ab318df 100644 --- a/src/Components/File/File.vue +++ b/src/Components/File/File.vue @@ -58,13 +58,13 @@ export default { return null } let previewUrl = '' - if (Object.hasOwn(this.filesStore.getFile(), 'uuid')) { + if (this.filesStore.files[this.currentNodeId]?.uuid?.length > 0) { previewUrl = generateOcsUrl('/apps/libresign/api/v1/file/thumbnail/{nodeId}', { nodeId: this.currentNodeId, }) } else { previewUrl = window.location.origin + generateUrl('/core/preview?fileId={fileid}', { - fileid: this.filesStore.getFile().nodeId, + fileid: this.currentNodeId, }) } diff --git a/src/Components/Request/RequestSignature.vue b/src/Components/Request/RequestSignature.vue index c2bf05f8e9..65a1786ff7 100644 --- a/src/Components/Request/RequestSignature.vue +++ b/src/Components/Request/RequestSignature.vue @@ -6,7 +6,7 @@