diff options
| author | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-11 14:19:51 -0400 |
|---|---|---|
| committer | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-11 14:19:51 -0400 |
| commit | c0aa7c79258ea8409611da710dc802e3481c34d8 (patch) | |
| tree | d1cfa06eaa26b768f7f31ff8a82282a423766e59 /src/client/views/collections/CollectionBaseView.tsx | |
| parent | c789df5ae7a9e364f0d95b54f4a2f330b536a393 (diff) | |
fixed the temporary inability to add documents :(
Diffstat (limited to 'src/client/views/collections/CollectionBaseView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionBaseView.tsx | 2 |
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 |
