Skip to content

Commit

Permalink
Fix tasks page (twentyhq#1325)
Browse files Browse the repository at this point in the history
* Fix tasks page

* remove console log

* use to-do instead
  • Loading branch information
Weiko authored Aug 28, 2023
1 parent 1b18735 commit ab9d7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/modules/activities/tasks/hooks/useTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function useTasks(entity?: ActivityTargetableEntity) {
});

const tasksData =
activeTabId === 'done' || !entity ? completeTasksData : incompleteTaskData;
activeTabId === 'to-do' || entity ? incompleteTaskData : completeTasksData;

const todayOrPreviousTasks = tasksData?.findManyActivities.filter((task) => {
if (!task.dueAt) {
Expand Down

0 comments on commit ab9d7dd

Please sign in to comment.