bad merge and rebase

This commit is contained in:
Jori Lallo
2017-06-27 00:19:15 -07:00
parent e73eec4486
commit f8a715dcef
3 changed files with 2 additions and 10 deletions

View File

@ -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);