From c5b628f17da1bfa17251ecf82fcb146751954b72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= <adrian.oliva@cimat.mx>
Date: Sun, 21 May 2023 19:09:15 -0600
Subject: 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.
---
 src/ToDo-UI/NewToDo.jsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/ToDo-UI/NewToDo.jsx')

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();
     }
 
-- 
cgit v1.2.3

