aboutsummaryrefslogtreecommitdiff
path: root/src/ToDo-UI/NewToDo.jsx
diff options
context:
space:
mode:
authorAdrián Oliva <adrian.oliva@cimat.mx>2023-05-21 19:09:15 -0600
committerAdrián Oliva <adrian.oliva@cimat.mx>2023-05-21 19:09:15 -0600
commitc5b628f17da1bfa17251ecf82fcb146751954b72 (patch)
tree041f3665fc8b60734649364245edee72fb18de61 /src/ToDo-UI/NewToDo.jsx
parentf3852c1f5bea14e72e200389759f123b880ccfec (diff)
downloadToDo-App-FE-c5b628f17da1bfa17251ecf82fcb146751954b72.tar.gz
ToDo-App-FE-c5b628f17da1bfa17251ecf82fcb146751954b72.zip
First attempt at filtering to do's.
We have a separate list from the original `todos_list`. It saves all currently filtered to do's for the listing to be as easy as possible.
Diffstat (limited to '')
-rw-r--r--src/ToDo-UI/NewToDo.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ToDo-UI/NewToDo.jsx b/src/ToDo-UI/NewToDo.jsx
index 28d80dc..2fd70b8 100644
--- a/src/ToDo-UI/NewToDo.jsx
+++ b/src/ToDo-UI/NewToDo.jsx
@@ -3,6 +3,7 @@ import { useSelector, useDispatch } from "react-redux";
import {
add_todo,
sort_todo,
+ refresh_filtered_todos,
select_last_index,
} from "../features/todo/reducer";
@@ -64,6 +65,7 @@ export function NewToDo() {
})
);
dispatch(sort_todo());
+ dispatch(refresh_filtered_todos());
handle_exit_modal();
}