Commit ef9a34e1 authored by csillag's avatar csillag

Fix exception on top-level annotations, introduced in a0d5b3ac

parent faa5e94c
......@@ -524,7 +524,7 @@ class Hypothesis extends Annotator
# Is this annotation a reply?
isReply: (annotation) ->
# The presence of references means that this is a reply
annotation.references.length
annotation.references?.length
# Discard all drafts, deleting unsaved annotations from the annotator
discardDrafts: ->
......
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