mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
Fix: do not remove previous state when publishing a listing
This commit is contained in:
parent
3c80e194a8
commit
87256f1fa7
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue