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 }); });