diff --git a/frontend/scenes/Collection/CollectionStore.js b/frontend/scenes/Collection/CollectionStore.js index 338fdfa6..e10870e7 100644 --- a/frontend/scenes/Collection/CollectionStore.js +++ b/frontend/scenes/Collection/CollectionStore.js @@ -18,7 +18,7 @@ class CollectionStore { invariant(res && res.data, 'Data should be available'); const { data } = res; - if (data.type === 'atlas') this.redirectUrl = data.recentDocuments[0].url; + if (data.type === 'atlas') this.redirectUrl = data.documents[0].url; else throw new Error('TODO code up non-atlas collections'); } catch (e) { console.log(e); diff --git a/frontend/scenes/Document/Document.js b/frontend/scenes/Document/Document.js index a9389c3e..a535432f 100644 --- a/frontend/scenes/Document/Document.js +++ b/frontend/scenes/Document/Document.js @@ -137,14 +137,6 @@ type Props = { : this.store.document && - {!isEditing && - }