From 9bb14de0a0695a33dacffe3afc6009352a337429 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 15 Sep 2020 11:22:53 +0200
Subject: [PATCH] FEAT #14825 TIME 0:15 Fix no download attachments

---
 src/frontend/app/viewer/document-viewer.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts
index aea489f463e..54e44b20160 100755
--- a/src/frontend/app/viewer/document-viewer.component.ts
+++ b/src/frontend/app/viewer/document-viewer.component.ts
@@ -614,7 +614,7 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
                 (err: any) => {
                     if (err.error.errors === 'Document has no file') {
                         this.noFile = true;
-                    } else if (err.error.errors === 'Converted Document not found') {
+                    } else if (err.error.errors === 'Converted Document not found' || err.error.errors === 'Document can not be converted') {
                         this.file.contentMode = 'route';
                         this.file.content = `../rest/attachments/${resId}/originalContent?mode=base64`;
                         this.noConvertedFound = true;
-- 
GitLab