From 843fe5d14c1f686d6d4ca8124f44f39d0da149a2 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 27 Mar 2024 12:20:28 +0100 Subject: [PATCH] Fix OnlyOffice apps broken when a checkpoint exists --- www/common/onlyoffice/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index bf6d7f27f..3e0001726 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -2361,7 +2361,7 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null // If the last checkpoint is empty, load the "initial" doc instead if (!lastCp || !lastCp.file) { return void loadDocument(true, useNewDefault); } // Load latest checkpoint - loadLastDocument(lastCp) + return void loadLastDocument(lastCp) .then(({blob, fileType}) => { startOO(blob, fileType); })