mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
Minor update in tasksReducer
This commit is contained in:
parent
226cfc3b82
commit
eb660f20ce
@ -507,6 +507,15 @@ function tasksReducer(
|
||||
deadTasks: {
|
||||
...state.deadTasks,
|
||||
batchActionPending: true,
|
||||
data: state.deadTasks.data.map((task) => {
|
||||
if (!action.taskKeys.includes(task.key)) {
|
||||
return task;
|
||||
}
|
||||
return {
|
||||
...task,
|
||||
requestPending: true,
|
||||
};
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
@ -545,6 +554,15 @@ function tasksReducer(
|
||||
deadTasks: {
|
||||
...state.deadTasks,
|
||||
batchActionPending: false,
|
||||
data: state.deadTasks.data.map((task) => {
|
||||
if (!action.taskKeys.includes(task.key)) {
|
||||
return task;
|
||||
}
|
||||
return {
|
||||
...task,
|
||||
requestPending: false,
|
||||
};
|
||||
}),
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user