From ba9ee7ab235a4f9db069cc443f228b78e8ee908f Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 22:35:24 +0200 Subject: [PATCH] working leantime widget 112 --- components/flow.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/components/flow.tsx b/components/flow.tsx index 8eca0611..25b7e448 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -95,13 +95,16 @@ export function Flow() { return; } - // Debug log to see raw task data + // Log the complete first task to see its structure + console.log('First task from API:', JSON.stringify(data.tasks[0], null, 2)); + + // Log all tasks with their date fields data.tasks.forEach((task: Task) => { - console.log(`Task ${task.id} - Raw data:`, { - headline: task.headline, - dateToFinish: task.dateToFinish, - date: task.date, - status: task.status + console.log(`Task ${task.id} - ${task.headline}:`, { + dateToFinish: task.dateToFinish || 'not set', + date: task.date || 'not set', + status: task.status, + projectName: task.projectName }); });