mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Merge branch 'master' of github.com:laurent22/joplin
This commit is contained in:
commit
be2b2b7836
@ -218,6 +218,7 @@ function changeSelectedFolder(state, action, options = null) {
|
||||
if (newState.selectedFolderId === state.selectedFolderId && newState.notesParentType === state.notesParentType) return state;
|
||||
|
||||
if (options.clearNoteHistory) newState.historyNotes = [];
|
||||
if (options.clearSelectedNoteIds) newState.selectedNoteIds = [];
|
||||
|
||||
return newState;
|
||||
}
|
||||
@ -348,7 +349,7 @@ const reducer = (state = defaultState, action) => {
|
||||
|
||||
case 'FOLDER_SELECT':
|
||||
|
||||
newState = changeSelectedFolder(state, action);
|
||||
newState = changeSelectedFolder(state, action, { clearSelectedNoteIds: true });
|
||||
break;
|
||||
|
||||
case 'FOLDER_AND_NOTE_SELECT':
|
||||
|
Loading…
Reference in New Issue
Block a user