mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:41:48 +00:00
null check on deleting entry from scope
This commit is contained in:
parent
ad5de0e93a
commit
2c3b19e43d
1 changed files with 1 additions and 0 deletions
|
@ -306,6 +306,7 @@ define [
|
|||
return (child_path.slice(0, parent_path.length) == parent_path)
|
||||
|
||||
_deleteEntityFromScope: (entity, options = { moveToDeleted: true }) ->
|
||||
return if !entity?
|
||||
parent_folder = null
|
||||
@forEachEntity (possible_entity, folder) ->
|
||||
if possible_entity == entity
|
||||
|
|
Loading…
Reference in a new issue