ui: problemconfig: support delete subtask

This commit is contained in:
undefined committed 2023-03-16 03:08:52 +08:00
1 parent 4300751c26
commit 04f9be778c
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;
}