New: Bulk remove from Blacklist

Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
Mark McDowall
2020-10-11 15:28:32 -07:00
committed by Qstick
parent 267bdb4cdf
commit 05bc9f11ee
9 changed files with 218 additions and 12 deletions
+6 -6
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) => {