This commit is contained in:
Zef Hemel
2022-11-20 10:24:24 +01:00
parent a1e3299fb8
commit 7a627c2f35
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ export async function indexTasks({ name, tree }: IndexTreeEvent) {
if (!task.tags) {
task.tags = [];
}
task.tags.push(tree.children![0].text!);
// Push the tag to the list, removing the initial #
task.tags.push(tree.children![0].text!.substring(1));
// Remove this node from the tree
return null;
}