Fixes to recent flow changes

This commit is contained in:
Jori Lallo
2017-05-11 23:05:11 -07:00
parent 48769a09fb
commit 259c643f91
2 changed files with 17 additions and 16 deletions

View File

@@ -150,7 +150,9 @@ class DocumentScene extends React.Component {
const { sidebar } = this.props.ui;
const doc = this.store.document;
if (!doc) return;
// FIXME: feels ghetto
if (!doc) return <div />;
const allowDelete =
doc &&
doc.collection.type === 'atlas' &&