From 83c1c20ce3b291ee125b013fec62c2ff8e78e7be Mon Sep 17 00:00:00 2001 From: mic704b Date: Mon, 27 Jan 2020 04:46:19 +1100 Subject: [PATCH] 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. --- ReactNativeClient/lib/reducer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactNativeClient/lib/reducer.js b/ReactNativeClient/lib/reducer.js index d50ce0efc4..4ed17c4570 100644 --- a/ReactNativeClient/lib/reducer.js +++ b/ReactNativeClient/lib/reducer.js @@ -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':