From 63f2f4927f0fd3e4d1d74b91599bc585fe820a29 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Fri, 16 Oct 2020 00:45:17 -0400
Subject: fixed some exceptions.  added text field to annotations on PDFs

---
 src/client/views/pdf/Annotation.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/pdf/Annotation.tsx')

diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx
index a071abd21..20ea7bfe4 100644
--- a/src/client/views/pdf/Annotation.tsx
+++ b/src/client/views/pdf/Annotation.tsx
@@ -100,7 +100,7 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> {
         group.isPushpin = !group.isPushpin;
     });
 
-    isPushpin = () => BoolCast(Cast(this.props.document.group, Doc, null).isPushpin);
+    isPushpin = () => BoolCast(Cast(this.props.document.group, Doc, null)?.isPushpin);
 
     @action
     onPointerDown = (e: React.PointerEvent) => {
-- 
cgit v1.2.3-70-g09d2

