Fixed: Don't append every MovieId to Delete as a URL Parameter

Fixes #4186
Fixes #4188
This commit is contained in:
Qstick
2020-02-25 21:28:33 -05:00
parent 7173c5c737
commit 9ccdb4871d
3 changed files with 5 additions and 11 deletions

View File

@@ -413,18 +413,13 @@ export const actionHandlers = handleThunks({
},
[BULK_DELETE_MOVIE]: function(getState, payload, dispatch) {
const {
id,
...queryParams
} = payload;
dispatch(set({
section,
isDeleting: true
}));
const promise = createAjaxRequest({
url: `/movie/editor?${$.param(queryParams, true)}`,
url: '/movie/editor',
method: 'DELETE',
data: JSON.stringify(payload),
dataType: 'json'