Skip to content

The open alternative to Salesforce, designed for AI.

fix: tasks "Done" not visible (#1445)

Jérémy M33c67214d63e
diff --git a/front/src/modules/activities/tasks/components/TaskGroups.tsx b/front/src/modules/activities/tasks/components/TaskGroups.tsx
index 8ad51a30017..1e4411ba5a4 100644
--- a/front/src/modules/activities/tasks/components/TaskGroups.tsx
+++ b/front/src/modules/activities/tasks/components/TaskGroups.tsx
@@ -70,7 +70,8 @@ export function TaskGroups({ entity, showAddButton }: OwnProps) {
);
if (
- (todayOrPreviousTasks?.length === 0 &&
+ (activeTabId === 'to-do' &&
+ todayOrPreviousTasks?.length === 0 &&
upcomingTasks?.length === 0 &&
unscheduledTasks?.length === 0) ||
(activeTabId === 'done' && completedTasks?.length === 0)