Desktop: Fix hang when selecting tag when multiple notes are selected (also for search) (#2372)

* Fix hang when tag clicked while multiple notes selected.

* Fix hang when search changed while multiple notes selected from previous search.
pull/2376/head
mic704b 2020-01-27 04:46:19 +11:00 committed by Laurent Cozic
parent 0bb1484b2d
commit 83c1c20ce3
1 changed files with 2 additions and 0 deletions

View File

@ -548,6 +548,7 @@ const reducer = (state = defaultState, action) => {
} else {
newState.notesParentType = 'Tag';
}
newState.selectedNoteIds = [];
break;
case 'TAG_UPDATE_ONE':
@ -675,6 +676,7 @@ const reducer = (state = defaultState, action) => {
} else {
newState.notesParentType = 'Search';
}
newState.selectedNoteIds = [];
break;
case 'APP_STATE_SET':