diff options
| author | bob <bcz@cs.brown.edu> | 2019-06-26 15:25:05 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-06-26 15:25:05 -0400 |
| commit | 859fc4e298bf3d022201c87db225fc1981356fa1 (patch) | |
| tree | 458b34d44c3b1bc4ee274c09dc029ec7266232cc /src/client/views/collections/CollectionSubView.tsx | |
| parent | d564601da06b696f59b97bf162fa52354d49f8c9 (diff) | |
fixed infinite recursion with stacking views and templates.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 0bed196e6..3b3bbdbd9 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -48,6 +48,7 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { @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() { + let self = this; //TODO tfs: This might not be what we want? //This linter error can't be fixed because of how js arguments work, so don't switch this to filter(FieldValue) return DocListCast((BoolCast(this.props.Document.isTemplate) ? this.extensionDoc : this.props.Document)[this.props.fieldExt ? this.props.fieldExt : this.props.fieldKey]); |
