Fix selectedTaskId initialization - was hardcoded as 2, now null

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-01-01 10:46:59 -03:00
parent 4f05af4d04
commit 3927dfb07e

View file

@ -10,7 +10,7 @@
// Prevent duplicate declaration when script is reloaded via HTMX // Prevent duplicate declaration when script is reloaded via HTMX
if (typeof TasksState === "undefined") { if (typeof TasksState === "undefined") {
var TasksState = { var TasksState = {
selectedTaskId: 2, // Default selected task selectedTaskId: null, // No task selected initially
currentFilter: "complete", currentFilter: "complete",
tasks: [], tasks: [],
wsConnection: null, wsConnection: null,