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) {