Deleted docs null check

This commit is contained in:
James Allen 2014-07-09 15:01:33 +01:00
parent 07debb2450
commit d9c8e5c1c2

View file

@ -189,7 +189,7 @@ define [
loadDeletedDocs: () ->
@$scope.deletedDocs = []
for doc in @$scope.project.deletedDocs
for doc in @$scope.project.deletedDocs or []
@$scope.deletedDocs.push {
name: doc.name
id: doc._id