Fix tasks page (#1325)

* Fix tasks page

* remove console log

* use to-do instead
This commit is contained in:
Weiko 2023-08-28 11:57:00 +02:00 committed by GitHub
parent 1b187350c0
commit ab9d7ddf7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {