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

This commit is contained in:
Elian Doran 2025-10-16 09:29:28 +03:00
parent 113061902e
commit f9a24bf601
No known key found for this signature in database

View File

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