aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionBaseView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/CollectionBaseView.tsx')
-rw-r--r--src/client/views/collections/CollectionBaseView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionBaseView.tsx b/src/client/views/collections/CollectionBaseView.tsx
index a3019f23e..4d6721dc1 100644
--- a/src/client/views/collections/CollectionBaseView.tsx
+++ b/src/client/views/collections/CollectionBaseView.tsx
@@ -106,7 +106,7 @@ export class CollectionBaseView extends React.Component<CollectionViewProps> {
}
if (!this.createsCycle(doc, props.Document)) {
//TODO This won't create the field if it doesn't already exist
- const childDocs = DocListCast(props.Document[props.fieldKey]);
+ const childDocs = Cast(props.Document[props.fieldKey], listSpec(Doc));
let alreadyAdded = true;
if (childDocs !== undefined) {
// if this is not the first document added to the collection