From f75497f57dffbede1ab17c0ee70124093e901e45 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 11 Aug 2024 13:44:16 +0300 Subject: [PATCH] Fixed: Overwriting query params for remove item handler --- frontend/src/Store/Actions/Creators/createRemoveItemHandler.js | 2 +- frontend/src/Store/Actions/movieActions.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js index dfe29ace8..3de794bdf 100644 --- a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js +++ b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js @@ -7,7 +7,7 @@ function createRemoveItemHandler(section, url) { return function(getState, payload, dispatch) { const { id, - ...queryParams + queryParams } = payload; dispatch(set({ section, isDeleting: true })); diff --git a/frontend/src/Store/Actions/movieActions.js b/frontend/src/Store/Actions/movieActions.js index e9bf36a4f..3f66b0740 100644 --- a/frontend/src/Store/Actions/movieActions.js +++ b/frontend/src/Store/Actions/movieActions.js @@ -377,7 +377,8 @@ export const deleteMovie = createThunk(DELETE_MOVIE, (payload) => { return { ...payload, queryParams: { - deleteFiles: payload.deleteFiles + deleteFiles: payload.deleteFiles, + addImportExclusion: payload.addImportExclusion } }; });