diff options
| author | bobzel <zzzman@gmail.com> | 2019-07-11 15:48:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 15:48:19 -0400 |
| commit | b4350c48aee6474692330761f96f8d93bfd4b2da (patch) | |
| tree | 2e5048b21a3360faeaf74b6609b58083f496cd88 /src/client/views/pdf/Annotation.tsx | |
| parent | 7006f67b7cf15734fb0b63d917ae392758704f75 (diff) | |
| parent | 1b203afbd297f8ae9400a47c9379df912f9ef3b5 (diff) | |
Merge pull request #201 from browngraphicslab/extensionFields
Extension fields
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) { |
