diff options
| author | bob <bcz@cs.brown.edu> | 2019-07-11 15:43:39 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-07-11 15:43:39 -0400 |
| commit | 1b203afbd297f8ae9400a47c9379df912f9ef3b5 (patch) | |
| tree | 2e5048b21a3360faeaf74b6609b58083f496cd88 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 6060e67bcf08089b826685c512e3aa181c714446 (diff) | |
tweaks to annotationOverlay.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index e72e69330..d2b808d4a 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -46,8 +46,7 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { this.createDropTarget(ele); } - public get isAnnotationOverlay() { return this.props.fieldKey === "annotations" || this.props.fieldExt === "annotations"; } - @computed get extensionDoc() { return Doc.resolvedFieldDataDoc(BoolCast(this.props.Document.isTemplate) && this.props.DataDoc ? this.props.DataDoc : this.props.Document, this.props.fieldKey, this.isAnnotationOverlay ? "dummy" : ""); } + @computed get extensionDoc() { return Doc.resolvedFieldDataDoc(BoolCast(this.props.Document.isTemplate) && this.props.DataDoc ? this.props.DataDoc : this.props.Document, this.props.fieldKey, this.props.fieldExt); } get childDocs() { |
