pull/532/head
Zef Hemel 2023-10-13 17:03:20 +02:00
parent 05431bdee5
commit 72453bac88
1 changed files with 1 additions and 0 deletions

View File

@ -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++;
}