From bf0e5c8469add5f43bee803377c15ec089390a9a Mon Sep 17 00:00:00 2001 From: SeansC12 <88256324+SeansC12@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:19:39 +0800 Subject: [PATCH] cleaned up _todos..tsx loader function --- app/routes/_todos.$date.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/routes/_todos.$date.tsx b/app/routes/_todos.$date.tsx index 949d35c..5ead792 100644 --- a/app/routes/_todos.$date.tsx +++ b/app/routes/_todos.$date.tsx @@ -34,10 +34,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => { const todoPageListItems = await getTodoPageListItems({ userId, date: date }); - if (todoPageListItems) { - } return json({ todoPageListItems: todoPageListItems, dateInUrl: date }); - // return redirect(`/${params.date}`); }; export const action = async ({ params, request }: ActionFunctionArgs) => {