mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problemconfig: support delete subtask
This commit is contained in:
3 files changed
+40
-11
No files matched your search
@@ -125,6 +125,10 @@ export default function reducer(state = {
|
||||
}
|
||||
return { ...state, subtasks, __cases };
|
||||
}
|
||||
case 'problemconfig/deleteSubtask': {
|
||||
const subtasks = state.subtasks.filter((i) => i.id !== action.id);
|
||||
return { ...state, subtasks };
|
||||
}
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user