Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(llm): LLM note type should not be selectable (closes #1848)
Elian Doranbc58ef605f91
diff --git a/apps/client/src/widgets/note_type.ts b/apps/client/src/widgets/note_type.tsindex 63190f208c..055cdf5650 100644--- a/apps/client/src/widgets/note_type.ts+++ b/apps/client/src/widgets/note_type.ts@@ -38,7 +38,6 @@ const NOTE_TYPES: NoteTypeMapping[] = [// Misc note types{ type: "render", mime: "", title: t("note_types.render-note"), selectable: true },{ type: "webView", mime: "", title: t("note_types.web-view"), selectable: true },- { type: "aiChat", mime: "application/json", title: t("note_types.ai-chat"), selectable: true },// Code notes{ type: "code", mime: "text/plain", title: t("note_types.code"), selectable: true },@@ -50,7 +49,8 @@ const NOTE_TYPES: NoteTypeMapping[] = [{ type: "image", title: t("note_types.image"), selectable: false },{ type: "launcher", mime: "", title: t("note_types.launcher"), selectable: false },{ type: "noteMap", mime: "", title: t("note_types.note-map"), selectable: false },- { type: "search", title: t("note_types.saved-search"), selectable: false }+ { type: "search", title: t("note_types.saved-search"), selectable: false },+ { type: "aiChat", mime: "application/json", title: t("note_types.ai-chat"), selectable: false }];const NOT_SELECTABLE_NOTE_TYPES = NOTE_TYPES.filter((nt) => !nt.selectable).map((nt) => nt.type);