Fixes #521
This commit is contained in:
parent
05431bdee5
commit
72453bac88
@ -62,6 +62,7 @@ export async function indexTasks({ name, tree }: IndexTreeEvent) {
|
|||||||
let currentState = taskStates.get(state);
|
let currentState = taskStates.get(state);
|
||||||
if (!currentState) {
|
if (!currentState) {
|
||||||
currentState = { count: 0, firstPos: n.from! };
|
currentState = { count: 0, firstPos: n.from! };
|
||||||
|
taskStates.set(state, currentState);
|
||||||
}
|
}
|
||||||
currentState.count++;
|
currentState.count++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user