Forráskód Böngészése

feat(reducer): clear form

Helder 6 éve
szülő
commit
07e2872640
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      src/app/store/reducers/toDoReducer.js

+ 1 - 0
src/app/store/reducers/toDoReducer.js

@@ -29,6 +29,7 @@ export default function reducer(state=initialState, action){
         case "TODO_DELETE_ALL":{
           return {
             ...state,
+            todoText:'',
             todoList:[]
           };