erase reply if parent exists fixes #11819

test plan:
1. delete a root entry
2. load the page (it should work)

Change-Id: I7a6a27bf8253955f74c518981ade3f5b87fee972
Reviewed-on: https://gerrit.instructure.com/15332
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
Ryan Florence 2012-11-13 15:53:24 -07:00
parent 8f7f3e3f7b
commit 8b9ec1b52f
1 changed files with 1 additions and 1 deletions

View File

@ -103,6 +103,6 @@ define [
maybeRemove: (entry) ->
if entry.deleted and !entry.replies
erase entry.parent.replies, entry
erase entry.parent.replies, entry if entry.parent?.replies?
delete @flattened[entry.id]