aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-03-17 23:10:31 -0400
committerGitHub <noreply@github.com>2019-03-17 23:10:31 -0400
commit405a47781d73a64b8e452ed5cae6e8fbd0e3cf0e (patch)
tree0357c8a2beca18f522e9b150e5e2e5e3ad2863fc /src/client/views/collections/CollectionView.tsx
parent8433cc2b1c4d838930c3812d140678011b06e728 (diff)
parent54371ab69c87eb6b802f83cc311e3ef7900c4d65 (diff)
Merge pull request #61 from browngraphicslab/view_doc_impl
view doc stuff
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index d9b2722a6..40acf466e 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -55,7 +55,7 @@ export class CollectionView extends React.Component<CollectionViewProps> {
const value = props.Document.GetData(props.fieldKey, ListField, new Array<Document>())
value.push(doc);
} else {
- props.Document.SetData(props.fieldKey, [doc], ListField);
+ props.Document.SetOnPrototype(props.fieldKey, new ListField([doc]));
}
}