From 72453bac88c8132aa869d465029b2c22933d6d47 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 13 Oct 2023 17:03:20 +0200 Subject: [PATCH] Fixes #521 --- plugs/tasks/task.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugs/tasks/task.ts b/plugs/tasks/task.ts index d6154dd5..a2fac5c6 100644 --- a/plugs/tasks/task.ts +++ b/plugs/tasks/task.ts @@ -62,6 +62,7 @@ export async function indexTasks({ name, tree }: IndexTreeEvent) { let currentState = taskStates.get(state); if (!currentState) { currentState = { count: 0, firstPos: n.from! }; + taskStates.set(state, currentState); } currentState.count++; }