mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
no complete all
This commit is contained in:
@@ -24,7 +24,7 @@ export const reducer = combineReducers<Store>({
|
||||
return draft;
|
||||
},
|
||||
|
||||
clear(draft, action) {
|
||||
clear(draft) {
|
||||
Object.keys(draft).forEach(id => {
|
||||
if (draft[id].completed) {
|
||||
delete draft[id];
|
||||
|
||||
Reference in New Issue
Block a user