refactor: 💡 remove unused command data (editNoteTitle)

This commit is contained in:
Jin 2025-04-10 22:19:04 +02:00
parent e555a3354f
commit 54a0bdeb14
2 changed files with 1 additions and 2 deletions

View File

@ -138,7 +138,6 @@ export type CommandMappings = {
insertNoteAfter: ContextMenuCommandData;
insertChildNote: ContextMenuCommandData;
delete: ContextMenuCommandData;
editNoteTitle: ContextMenuCommandData;
protectSubtree: ContextMenuCommandData;
unprotectSubtree: ContextMenuCommandData;
openBulkActionsDialog:

View File

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