mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix OnlyOffice apps broken when a checkpoint exists
This commit is contained in:
parent
671ebeab18
commit
843fe5d14c
@ -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);
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user