From 9a2caeb5fff473fb9602b40c83033022551b48a9 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 29 May 2017 20:00:08 -0700 Subject: [PATCH] Fixed collection creation --- frontend/stores/CollectionsStore.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/stores/CollectionsStore.js b/frontend/stores/CollectionsStore.js index ee6534021..745684a64 100644 --- a/frontend/stores/CollectionsStore.js +++ b/frontend/stores/CollectionsStore.js @@ -30,15 +30,7 @@ class CollectionsStore { invariant(res && res.data, 'Collection list not available'); const { data } = res; runInAction('CollectionsStore#fetch', () => { - this.data.replace( - data.map( - collection => - new Collection({ - ...collection, - errors: this.errors, - }) - ) - ); + this.data.replace(data.map(collection => new Collection(collection))); this.isLoaded = true; }); } catch (e) {