null check on deleting entry from scope

This commit is contained in:
Henry Oswald 2015-02-18 22:28:02 +00:00
parent ad5de0e93a
commit 2c3b19e43d

View file

@ -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