1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Fixes #2803: Remember last selected note (#2809)

* Fix : Remember last selected note

Fixes #2803

* Add unit test
This commit is contained in:
Naveen M V
2020-03-21 16:59:22 +05:30
committed by GitHub
parent 42498842b5
commit 3ecd29d0b5
2 changed files with 30 additions and 2 deletions

View File

@ -365,8 +365,6 @@ function changeSelectedNotes(state, action, options = null) {
newState.backwardHistoryNotes = backwardHistoryNotes;
newState.forwardHistoryNotes = forwardHistoryNotes;
return newState;
} else if (action.type === 'NOTE_SELECT_ADD') {
if (!noteIds.length) return state;
newState.selectedNoteIds = ArrayUtils.unique(newState.selectedNoteIds.concat(noteIds));