diff options
| author | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-05-09 19:07:50 -0400 |
|---|---|---|
| committer | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-05-09 19:07:50 -0400 |
| commit | e98dd0bf2ec4354daf95cc0d104cab1193fd4160 (patch) | |
| tree | 2458827f32530528e306821db8fd37ced27ba7ef /src/client/views/collections/CollectionSubView.tsx | |
| parent | d6b7ee34014be0e990d0d3967225dde1daaed5d0 (diff) | |
| parent | 39fd912fd4cd33f30a943290295a59992b9868eb (diff) | |
merged with master
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 232679a59..0b08e150a 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -49,7 +49,7 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { get children() { //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 Cast(this.props.Document[this.props.fieldKey], listSpec(Doc), []).filter(doc => FieldValue(doc)); + return Cast(this.props.Document[this.props.fieldKey], listSpec(Doc), []).filter(doc => FieldValue(doc)).map(doc => doc as Doc); } @action |
