Skip to content

Build your personal knowledge base with Trilium Notes

fix(collection/presentation): template not well defined at first initialization

Elian Doran88689f2987c3
diff --git a/apps/server/src/services/hidden_subtree_templates.ts b/apps/server/src/services/hidden_subtree_templates.ts
index d85fb5546d..3b2de5dbf9 100644
--- a/apps/server/src/services/hidden_subtree_templates.ts
+++ b/apps/server/src/services/hidden_subtree_templates.ts
@@ -234,6 +234,18 @@ export default function buildHiddenSubtreeTemplates() {
}
]
},
+ {
+ id: "_template_presentation_slide",
+ type: "text",
+ title: t("hidden_subtree_templates.presentation_slide"),
+ icon: "bx bx-rectangle",
+ attributes: [
+ {
+ name: "slide",
+ type: "label"
+ }
+ ]
+ },
{
id: "_template_presentation",
type: "book",
@@ -287,18 +299,6 @@ export default function buildHiddenSubtreeTemplates() {
]
}
]
- },
- {
- id: "_template_presentation_slide",
- type: "text",
- title: t("hidden_subtree_templates.presentation_slide"),
- icon: "bx bx-rectangle",
- attributes: [
- {
- name: "slide",
- type: "label"
- }
- ]
}
]
};