fix: Fixes prompt for Cmd/Ctrl+Backspace command on trashed note (#2990)

This commit is contained in:
Antonella Sgarlatta
2026-03-05 23:48:13 -03:00
committed by GitHub
parent bdc43d6d54
commit 8a845df38c

View File

@@ -761,7 +761,7 @@ class NoteView extends AbstractComponent<NoteViewProps, State> {
registerKeyboardShortcuts() { registerKeyboardShortcuts() {
const moveNoteToTrash = () => { const moveNoteToTrash = () => {
this.deleteNote(false).catch(console.error) this.deleteNote(this.note.trashed).catch(console.error)
} }
this.#observers.push( this.#observers.push(