diff --git a/packages/components-faraday/src/components/Dashboard/DashboardPage.js b/packages/components-faraday/src/components/Dashboard/DashboardPage.js index 2aadccce522ce995b4387b64b0f1b891433befe9..0cdd9b5ee5b05ba3c0a89a997c1f9fb3fb640344 100644 --- a/packages/components-faraday/src/components/Dashboard/DashboardPage.js +++ b/packages/components-faraday/src/components/Dashboard/DashboardPage.js @@ -34,6 +34,7 @@ export default compose( } }, { + getCollections: actions.getCollections, deleteCollection: actions.deleteCollection, }, ), @@ -52,15 +53,17 @@ export default compose( ({ journal, currentUser }) => ({ journal, currentUser }), ), withHandlers({ - deleteCollection: ({ setFetching, deleteCollection }) => collection => ({ - hideModal, - setModalError, - }) => { + deleteCollection: ({ + setFetching, + deleteCollection, + getCollections, + }) => collection => ({ hideModal, setModalError }) => { setFetching(true) deleteCollection(collection) .then(() => { setFetching(false) hideModal() + getCollections() }) // again, the error is not being thrown from deleteCollection action and // the catch is never run