From 87256f1fa7668c1220cf3be6f7f0e50d5d84aecd Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 27 Aug 2019 15:05:26 +0300 Subject: [PATCH] Fix: do not remove previous state when publishing a listing --- src/containers/EditListingPage/EditListingPage.duck.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/containers/EditListingPage/EditListingPage.duck.js b/src/containers/EditListingPage/EditListingPage.duck.js index ec9c6dfc..0665e891 100644 --- a/src/containers/EditListingPage/EditListingPage.duck.js +++ b/src/containers/EditListingPage/EditListingPage.duck.js @@ -208,8 +208,15 @@ export default function reducer(state = initialState, action = {}) { }; case PUBLISH_LISTING_SUCCESS: return { + ...state, redirectToListing: true, publishingListing: null, + createListingDraftError: null, + updateListingError: null, + showListingsError: null, + uploadImageError: null, + createListingDraftInProgress: false, + updateInProgress: false, }; case PUBLISH_LISTING_ERROR: { // eslint-disable-next-line no-console