From c00c9561357e60e0543047f081662aaa89f9218c Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Wed, 16 Mar 2022 19:26:18 +0200 Subject: [PATCH] EditListingPage.duck: fix image upload (dublicate images shown) --- src/containers/EditListingPage/EditListingPage.duck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/EditListingPage/EditListingPage.duck.js b/src/containers/EditListingPage/EditListingPage.duck.js index b8ba5bce6..160485d35 100644 --- a/src/containers/EditListingPage/EditListingPage.duck.js +++ b/src/containers/EditListingPage/EditListingPage.duck.js @@ -167,7 +167,7 @@ export default function reducer(state = initialState, action = {}) { case SHOW_LISTINGS_REQUEST: return { ...state, showListingsError: null }; case SHOW_LISTINGS_SUCCESS: - return state; + return { ...state, images: {}, imageOrder: [], removedImageIds: [] }; case SHOW_LISTINGS_ERROR: // eslint-disable-next-line no-console