Skip to content

Commit

Permalink
cleaned up _todos..tsx loader function
Browse files Browse the repository at this point in the history
  • Loading branch information
SeansC12 committed Dec 10, 2024
1 parent 024016d commit bf0e5c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/routes/_todos.$date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bf0e5c8

Please sign in to comment.