diff options
| author | bob <bcz@cs.brown.edu> | 2019-05-09 14:11:35 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-05-09 14:11:35 -0400 |
| commit | 244d4d127e7e1a0faadbc5a8baed7922ef03522c (patch) | |
| tree | 09dfaa6d524e39fcfffba1a1bd782f4b44905cab /src/client/views/collections/CollectionSubView.tsx | |
| parent | 9015421a227ab58f309906eabf884654d3a31a17 (diff) | |
cleaned up textlinking a little.
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 828ac880a..082692d8d 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -50,7 +50,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 |
