aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-01-21 17:00:04 -0500
committerbob <bcz@cs.brown.edu>2020-01-21 17:00:04 -0500
commit4eb5fde5f9b14d1b13c1995b9a1110347a57a582 (patch)
treef94b400e312889b1c985ca8d167cd8a2ea2df72c /src/client
parent119f90cc5c4ef773133f1bfd18a813dde9487f94 (diff)
fixed templating with collection views set?
Diffstat (limited to 'src/client')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index cc8ae2ac1..a99bd29d6 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -92,7 +92,7 @@ export class CollectionView extends Touchable<FieldViewProps> {
public static SetSafeMode(safeMode: boolean) { this._safeMode = safeMode; }
@computed get dataDoc() { return this.props.DataDoc && this.props.Document.isTemplateField ? Doc.GetProto(this.props.DataDoc) : Doc.GetProto(this.props.Document); }
- @computed get extensionDoc() { return Doc.fieldExtensionDoc(this.dataDoc, this.props.fieldKey); }
+ @computed get extensionDoc() { return Doc.fieldExtensionDoc(this.props.Document, this.props.fieldKey); }
get collectionViewType(): CollectionViewType | undefined {
if (!this.extensionDoc) return CollectionViewType.Invalid;