diff options
| author | bob <bcz@cs.brown.edu> | 2019-06-26 12:56:22 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-06-26 12:56:22 -0400 |
| commit | 084dd6d9b0ad51133025ba6bd2702fc44b1b6c31 (patch) | |
| tree | 323c734acf686a71ed78b10c336e8c0c25c2837d /src/client/views/collections/CollectionBaseView.tsx | |
| parent | f089dba7a271512bcebca2741f2f4f31243ffd47 (diff) | |
fixes to datadoc usage. fixed tree view for textboxes.
Diffstat (limited to 'src/client/views/collections/CollectionBaseView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionBaseView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionBaseView.tsx b/src/client/views/collections/CollectionBaseView.tsx index a4a9ec994..22f0cf6e2 100644 --- a/src/client/views/collections/CollectionBaseView.tsx +++ b/src/client/views/collections/CollectionBaseView.tsx @@ -59,7 +59,7 @@ export class CollectionBaseView extends React.Component<CollectionViewProps> { } } - @computed get dataDoc() { return Doc.resolvedFieldDataDoc(BoolCast(this.props.Document.isTemplate) ? this.props.DataDoc : this.props.Document, this.props.fieldKey, this.props.fieldExt); } + @computed get dataDoc() { return Doc.resolvedFieldDataDoc(BoolCast(this.props.Document.isTemplate) ? this.props.DataDoc ? this.props.DataDoc : this.props.Document : this.props.Document, this.props.fieldKey, this.props.fieldExt); } @computed get dataField() { return this.props.fieldExt ? this.props.fieldExt : this.props.fieldKey; } active = (): boolean => { |
