New: Bulk remove from Blacklist

This commit is contained in:
Mark McDowall 2020-10-11 15:28:32 -07:00 committed by Qstick
parent 4a9d870720
commit d7183f999c
9 changed files with 218 additions and 12 deletions

View file

@ -306,9 +306,9 @@ export const actionHandlers = handleThunks({
}).request;
promise.done((data) => {
dispatch(batchActions([
fetchQueue(),
dispatch(fetchQueue());
dispatch(batchActions([
...ids.map((id) => {
return updateItem({
section: paged,
@ -394,10 +394,10 @@ export const actionHandlers = handleThunks({
}).request;
promise.done((data) => {
dispatch(batchActions([
set({ section: paged, isRemoving: false }),
fetchQueue()
]));
// Don't use batchActions with thunks
dispatch(fetchQueue());
dispatch(set({ section: paged, isRemoving: false }));
});
promise.fail((xhr) => {