diff --git a/src/views/Validation.vue b/src/views/Validation.vue index 06e64f1f3..f9056649c 100644 --- a/src/views/Validation.vue +++ b/src/views/Validation.vue @@ -533,13 +533,15 @@ export default { }, viewDocument() { if (OCA?.Viewer !== undefined) { + const fileInfo = { + source: this.document.file, + basename: this.document.name, + mime: 'application/pdf', + fileid: this.document.nodeId, + } OCA.Viewer.open({ - fileInfo: { - source: this.document.file, - basename: this.document.name, - mime: 'application/pdf', - fileId: this.document.nodeId, - }, + fileInfo, + list: [fileInfo], }) } else { window.open(`${this.document.file}?_t=${Date.now()}`)