Skip to content

Build your personal knowledge base with Trilium Notes

refactor: 💡 remove unused command data (editNoteTitle)

Jin54a0bdeb1473
diff --git a/src/public/app/components/app_context.ts b/src/public/app/components/app_context.ts
index 01715e071e..c27f63b396 100644
--- a/src/public/app/components/app_context.ts
+++ b/src/public/app/components/app_context.ts
@@ -138,7 +138,6 @@ export type CommandMappings = {
insertNoteAfter: ContextMenuCommandData;
insertChildNote: ContextMenuCommandData;
delete: ContextMenuCommandData;
- editNoteTitle: ContextMenuCommandData;
protectSubtree: ContextMenuCommandData;
unprotectSubtree: ContextMenuCommandData;
openBulkActionsDialog:
diff --git a/src/public/app/widgets/note_tree.ts b/src/public/app/widgets/note_tree.ts
index 96f6a4c1b0..4a89425c54 100644
--- a/src/public/app/widgets/note_tree.ts
+++ b/src/public/app/widgets/note_tree.ts
@@ -1687,7 +1687,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
this.triggerCommand("showImportDialog", { noteId: node.data.noteId });
}
- editNoteTitleCommand({ node }: CommandListenerData<"editNoteTitle">) {
+ editNoteTitleCommand() {
appContext.triggerCommand("focusOnTitle");
}