From 607809b8507f3147ede41a7c42bd052d92d88824 Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 21:52:10 +0200 Subject: [PATCH] working leantime widget 104 --- components/flow.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/flow.tsx b/components/flow.tsx index 699a75dd..2f7ac966 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -106,13 +106,13 @@ export function Flow() { validDate: getEffectiveDate(task) })); - const filteredTasks = tasksWithDates - .filter(task => task.status !== 3) + // Show all tasks, sorted by date + const sortedTasks = tasksWithDates .sort((a, b) => a.validDate.getTime() - b.validDate.getTime()) .slice(0, 6); - console.log("Filtered and sorted tasks:", filteredTasks); - setTasks(filteredTasks); + console.log("Sorted tasks:", sortedTasks); + setTasks(sortedTasks); } catch (error) { console.error("Error fetching tasks:", error); setError("Failed to fetch tasks");