Commit 89bfa6b3 authored by Nick Stenning's avatar Nick Stenning

Fix annotation pages

cf410d0 broke standalone annotation pages by changing
`threadRoot.children` from an array into a thread container.
Unsurprisingly, `children` is supposed to be an array.
parent 99bd3f21
......@@ -26,7 +26,7 @@ module.exports = class AnnotationViewerController
store.AnnotationResource.read id: id, (annotation) ->
annotationMapper.loadAnnotations([annotation])
$scope.threadRoot = {children: threading.idTable[id]}
$scope.threadRoot = {children: [threading.idTable[id]]}
store.SearchResource.get references: id, ({rows}) ->
annotationMapper.loadAnnotations(rows)
......
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