fix ViewDocument component error when doc isn't ready

This commit is contained in:
cleverbeagle 2017-06-27 05:49:39 -05:00
parent 5abb3025cb
commit 1351a26c24

View file

@ -55,6 +55,6 @@ export default createContainer(({ match }) => {
return {
loading: !subscription.ready(),
doc: Documents.findOne(documentId),
doc: Documents.findOne(documentId) || {},
};
}, ViewDocument);