diff options
| author | bob <bcz@cs.brown.edu> | 2020-01-21 17:00:04 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-01-21 17:00:04 -0500 |
| commit | 4eb5fde5f9b14d1b13c1995b9a1110347a57a582 (patch) | |
| tree | f94b400e312889b1c985ca8d167cd8a2ea2df72c /src/client | |
| parent | 119f90cc5c4ef773133f1bfd18a813dde9487f94 (diff) | |
fixed templating with collection views set?
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 2 |
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; |
