diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-11 16:05:50 -0400 |
| commit | 348cedb4db1426f4bac8f0ff4e136f329983f7c1 (patch) | |
| tree | 3d6bbe3a0d4d0886ba5ee56efff88d220945962f /src/client/views/pdf/Annotation.tsx | |
| parent | 36992ca2388e2a6919ecf0b78f4731bc9aea8f86 (diff) | |
| parent | b4350c48aee6474692330761f96f8d93bfd4b2da (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/pdf/Annotation.tsx')
| -rw-r--r-- | src/client/views/pdf/Annotation.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/pdf/Annotation.tsx b/src/client/views/pdf/Annotation.tsx index 0a1661a1a..104241237 100644 --- a/src/client/views/pdf/Annotation.tsx +++ b/src/client/views/pdf/Annotation.tsx @@ -87,11 +87,11 @@ class RegionAnnotation extends React.Component<IRegionAnnotationProps> { } deleteAnnotation = () => { - let annotation = DocListCast(this.props.parent.props.parent.Document.annotations); + let annotation = DocListCast(this.props.parent.props.parent.fieldExtensionDoc.annotations); let group = FieldValue(Cast(this.props.document.group, Doc)); if (group && annotation.indexOf(group) !== -1) { let newAnnotations = annotation.filter(a => a !== FieldValue(Cast(this.props.document.group, Doc))); - this.props.parent.props.parent.Document.annotations = new List<Doc>(newAnnotations); + this.props.parent.props.parent.fieldExtensionDoc.annotations = new List<Doc>(newAnnotations); } if (group) { |
