Skip to content

Commit

Permalink
fix: select active note
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed May 10, 2021
1 parent 8f7a085 commit f317d6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/views/notes/notes_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
const discarded = activeNote.deleted || activeNote.trashed;
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
this.selectNextOrCreateNew();
} else {
this.selectNote(activeNote);
}
} else {
this.selectFirstNote();
Expand Down

0 comments on commit f317d6c

Please sign in to comment.