Fix selectedTaskId initialization - was hardcoded as 2, now null
This commit is contained in:
parent
4f05af4d04
commit
3927dfb07e
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@
|
|||
// Prevent duplicate declaration when script is reloaded via HTMX
|
||||
if (typeof TasksState === "undefined") {
|
||||
var TasksState = {
|
||||
selectedTaskId: 2, // Default selected task
|
||||
selectedTaskId: null, // No task selected initially
|
||||
currentFilter: "complete",
|
||||
tasks: [],
|
||||
wsConnection: null,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue