Commit 52d6ce4c authored by Randall Leeds's avatar Randall Leeds

Defensive property access on thread.children

parent ba7f000e
...@@ -379,8 +379,8 @@ class Viewer ...@@ -379,8 +379,8 @@ class Viewer
provider.notify method: 'setActiveHighlights', params: highlights provider.notify method: 'setActiveHighlights', params: highlights
$scope.replies = (annotation) -> $scope.replies = (annotation) ->
thread = threading.idTable[annotation.id] thread = threading.getContainer annotation.id
(r.message for r in thread.children) (r.message for r in (thread.children or []))
$scope.toggleDetail = ($event) -> $scope.toggleDetail = ($event) ->
# XXX: Super hacky nonsense here that should probably be handled # XXX: Super hacky nonsense here that should probably be handled
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment