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
client/tree context menu: improve handling the case when the note color picker is not available
Adorian Doranbeb7d09aeead
diff --git a/apps/client/src/menus/tree_context_menu.ts b/apps/client/src/menus/tree_context_menu.tsindex 19e6f4e169..901a165591 100644--- a/apps/client/src/menus/tree_context_menu.ts+++ b/apps/client/src/menus/tree_context_menu.ts@@ -244,16 +244,12 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree{ kind: "separator"},- {+ (notOptionsOrHelp && selectedNotes.length === 1) ? {kind: "custom",componentFn: () => {- if (notOptionsOrHelp && selectedNotes.length === 1) {- return NoteColorPicker({note});- } else {- return null;- }+ return NoteColorPicker({note});}- },+ } : null,{ kind: "separator" },