Fixes #124
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@ export async function indexItems({ name, tree }: IndexTreeEvent) {
|
||||
if (!item.tags) {
|
||||
item.tags = [];
|
||||
}
|
||||
item.tags.push(h.children![0].text!);
|
||||
// Push tag to the list, removinn the initial #
|
||||
item.tags.push(h.children![0].text!.substring(1));
|
||||
});
|
||||
|
||||
items.push({
|
||||
|
||||
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user