mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 21:00:45 +00:00
Don't choke when passed null doc to openDoc
This commit is contained in:
parent
2ca70f25f6
commit
095f950258
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ define [
|
|||
children.add(entity)
|
||||
|
||||
openDoc: (doc, line) ->
|
||||
return if !doc?
|
||||
doc_id = doc.id or doc
|
||||
@trigger "open:doc", doc_id, line: line
|
||||
@selectEntity(doc_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue