From 97fc025d302c661474935ebeb2bf08e07cc0063b Mon Sep 17 00:00:00 2001
From: Bogdan Cochior <bogdan.cochior@thinslices.com>
Date: Mon, 24 Sep 2018 14:40:01 +0300
Subject: [PATCH] fix: initialize collection

---
 packages/component-faraday-selectors/src/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/component-faraday-selectors/src/index.js b/packages/component-faraday-selectors/src/index.js
index ae7b54ace..04d563d5d 100644
--- a/packages/component-faraday-selectors/src/index.js
+++ b/packages/component-faraday-selectors/src/index.js
@@ -188,7 +188,7 @@ const parseInvitedHE = (handlingEditor, state, collectionId) =>
 
 const hideCustomIdStatuses = ['draft', 'technicalChecks']
 
-export const parseCollectionDetails = (state, collection) => ({
+export const parseCollectionDetails = (state, collection = {}) => ({
   ...collection,
   customId:
     !hideCustomIdStatuses.includes(get(collection, 'status', 'draft')) &&
-- 
GitLab