summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotation.index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-21 17:41:10 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-21 17:41:10 +0200
commit3b0adaf902920a06efc141df58abd0368bd724b6 (patch)
treef1e65fc75db4a153f4f81578bb0e23bf113354e0 /animism-align/frontend/app/views/align/components/annotations/annotation.index.js
parent4f10f2a47aa89421ae4631609f84e53891710e4c (diff)
fullscreen text
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.index.js')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotation.index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.index.js b/animism-align/frontend/app/views/align/components/annotations/annotation.index.js
index b42f1ee..8e1fa43 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotation.index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotation.index.js
@@ -43,6 +43,7 @@ class AnnotationIndex extends PureComponent {
}
handleClick(e, annotation) {
e.stopPropagation()
+ if (!annotation) return
if (e.shiftKey) {
e.preventDefault()
this.handleParagraphSelection(annotation, e.metaKey)