From 295fde8a7550ecd3a824e045848a2aa4fb97fd9d Mon Sep 17 00:00:00 2001 From: Yuyao Huang Date: Sat, 9 May 2026 14:26:57 +0800 Subject: [PATCH] Add debug logging for goals data --- static/js/tasks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/tasks.js b/static/js/tasks.js index ab50973..1ac11a0 100644 --- a/static/js/tasks.js +++ b/static/js/tasks.js @@ -10,6 +10,7 @@ let isInitializing = false; async function loadGoals() { try { goals = await get("/api/goals"); + console.log("loadGoals: goals =", goals.map(g => ({id: g.id, selected_task_id: g.selected_task_id}))); currentUser = await get("/api/auth/me"); const selector = document.getElementById("goal-selector"); const activatedGoals = goals.filter(g => g.activated);