Skip to content

Commit

Permalink
fix: todos without start date are shown as active
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal authored and sleidig committed Feb 28, 2023
1 parent 05b3860 commit 21a14dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/features/todos/todo-list/todo-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ const filterCurrentlyActive: FilterSelectionOption<Todo> = {
{ completed: undefined },
{
$or: [
{
startDate: {
$exists: false,
},
},
{
startDate: {
$lte: moment().format("YYYY-MM-DD"),
Expand Down

0 comments on commit 21a14dd

Please sign in to comment.