Skip to content

Build your personal knowledge base with Trilium Notes

fix(collection/presentation): hide slide from list of templates

Elian Doranf9a24bf6013d
diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts
index a42631f9f3..74b6f56659 100644
--- a/apps/client/src/services/note_types.ts
+++ b/apps/client/src/services/note_types.ts
@@ -168,7 +168,8 @@ async function getBuiltInTemplates(title: string | null, command: TreeCommandNam
}
for (const templateNote of childNotes) {
- if (templateNote.hasLabel("collection") !== filterCollections) {
+ if (templateNote.hasLabel("collection") !== filterCollections ||
+ !templateNote.hasLabel("template")) {
continue;
}