Add debug logging for goals data
This commit is contained in:
parent
1f4efcd7b3
commit
295fde8a75
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user