aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2021-10-14 14:30:59 -0400
committergeireann <geireann.lindfield@gmail.com>2021-10-14 14:30:59 -0400
commitbc98611d219c3c3f69576b9e97d6363f5a465f91 (patch)
tree9c48a176b3405952c81a9a7d856f956f05caa077 /src
parent0f83dfd2aa9738509fdb09cd54005d1ccf5c552c (diff)
parented68bbec549dedeb89bcb584151b097863b52d0d (diff)
Merge branch 'master' into splash-screen-3-Anh-En-Hua
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/ComparisonBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx
index b1aada158..0f962f95c 100644
--- a/src/client/views/nodes/ComparisonBox.tsx
+++ b/src/client/views/nodes/ComparisonBox.tsx
@@ -90,7 +90,7 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatabl
const displayDoc = (which: string) => {
var whichDoc = Cast(this.dataDoc[which], Doc, null);
//if (whichDoc?.type === DocumentType.MARKER)
- const targetDoc = Cast(whichDoc.annotationOn, Doc, null) ?? whichDoc;
+ const targetDoc = Cast(whichDoc?.annotationOn, Doc, null) ?? whichDoc;
return whichDoc ? <>
<DocumentView
ref={(r) => {