From 67d3c6d37af397d76d0640d27b20564a1887d473 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Tue, 4 Feb 2020 09:52:15 +0100
Subject: [PATCH] FIX #12346 TIME 0:10 fix format in jnlp

---
 src/frontend/app/viewer/document-viewer.component.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts
index d3e44333087..fda45531372 100644
--- a/src/frontend/app/viewer/document-viewer.component.ts
+++ b/src/frontend/app/viewer/document-viewer.component.ts
@@ -660,7 +660,7 @@ export class DocumentViewerComponent implements OnInit {
             this.http.post('../../rest/jnlp', this.editor.options).pipe(
                 tap((data: any) => {
                     window.location.href = '../../rest/jnlp/' + data.generatedJnlp;
-                    this.checkLockFile(data.jnlpUniqueId, this.format);
+                    this.checkLockFile(data.jnlpUniqueId, this.file.format);
                 })
             ).subscribe();
         }
@@ -689,7 +689,7 @@ export class DocumentViewerComponent implements OnInit {
             this.http.post('../../rest/jnlp', this.editor.options).pipe(
                 tap((data: any) => {
                     window.location.href = '../../rest/jnlp/' + data.generatedJnlp;
-                    this.checkLockFile(data.jnlpUniqueId, this.format);
+                    this.checkLockFile(data.jnlpUniqueId, this.file.format);
                 })
             ).subscribe();
         }
-- 
GitLab