Fix OnlyOffice apps broken when a checkpoint exists

This commit is contained in:
yflory 2024-03-27 12:20:28 +01:00
parent 671ebeab18
commit 843fe5d14c

View File

@ -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);
})