From c0aa7c79258ea8409611da710dc802e3481c34d8 Mon Sep 17 00:00:00 2001
From: Sam Wilkins <samuel_wilkins@brown.edu>
Date: Tue, 11 Jun 2019 14:19:51 -0400
Subject: fixed the temporary inability to add documents :(

---
 src/client/views/collections/CollectionBaseView.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/collections/CollectionBaseView.tsx')

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
-- 
cgit v1.2.3-70-g09d2

