mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 07:52:06 +00:00
Don't error when detaching from history with no sharejsDoc
This commit is contained in:
parent
5d3ecdb924
commit
29d2b408ad
1 changed files with 2 additions and 1 deletions
|
@ -428,7 +428,8 @@ define [
|
|||
rendererData.lineHeight = editor.renderer.lineHeight
|
||||
|
||||
scope.$on '$destroy', () ->
|
||||
detachFromAce(scope.sharejsDoc)
|
||||
if scope.sharejsDoc?
|
||||
detachFromAce(scope.sharejsDoc)
|
||||
|
||||
scope.$emit "#{scope.name}:inited", editor
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue