mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-17 06:47:34 +00:00
Merge pull request #3482 from overleaf/jpa-cleanup-on-epoch-mismatch
[frontend] on editorOpenDocEpoch mismatch, cleanup the old doc GitOrigin-RevId: b07beb33a17d218d7aa35961dee5e215bd82c315
This commit is contained in:
parent
a393352516
commit
0b94c89990
1 changed files with 1 additions and 0 deletions
|
@ -273,6 +273,7 @@ export default (EditorManager = (function() {
|
|||
this.editorOpenDocEpoch
|
||||
} vs ${editorOpenDocEpoch}`
|
||||
)
|
||||
new_sharejs_doc.leaveAndCleanUp()
|
||||
return callback(new Error('another document was loaded'))
|
||||
}
|
||||
this._bindToDocumentEvents(doc, new_sharejs_doc)
|
||||
|
|
Loading…
Add table
Reference in a new issue