Fixed: Overwriting query params for remove item handler

pull/10287/head
Bogdan 3 months ago committed by Qstick
parent 2f413c68d9
commit f75497f57d

@ -7,7 +7,7 @@ function createRemoveItemHandler(section, url) {
return function(getState, payload, dispatch) { return function(getState, payload, dispatch) {
const { const {
id, id,
...queryParams queryParams
} = payload; } = payload;
dispatch(set({ section, isDeleting: true })); dispatch(set({ section, isDeleting: true }));

@ -377,7 +377,8 @@ export const deleteMovie = createThunk(DELETE_MOVIE, (payload) => {
return { return {
...payload, ...payload,
queryParams: { queryParams: {
deleteFiles: payload.deleteFiles deleteFiles: payload.deleteFiles,
addImportExclusion: payload.addImportExclusion
} }
}; };
}); });

Loading…
Cancel
Save