Skip to content

Commit

Permalink
fix: new note button not working when multiple notes selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonella Sgarlatta committed May 24, 2021
1 parent 633add7 commit 6a7e09c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/views/notes/notes_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
}

async createNewNote() {
this.appState.notes.unselectNotes();
let title = `Note ${this.state.notes.length + 1}`;
if (this.isFiltering()) {
title = this.state.noteFilter.text;
Expand Down

0 comments on commit 6a7e09c

Please sign in to comment.