You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Fixes #3748: Fixed issue when switching from search to "All notes"
This commit is contained in:
@ -313,7 +313,9 @@ function updateSelectedNotesFromExistingNotes(state) {
|
||||
function defaultNotesParentType(state, exclusion) {
|
||||
let newNotesParentType = null;
|
||||
|
||||
if (exclusion !== 'Folder' && state.selectedFolderId) {
|
||||
if (exclusion !== 'SmartFilter' && state.selectedSmartFilterId) {
|
||||
newNotesParentType = 'SmartFilter';
|
||||
} else if (exclusion !== 'Folder' && state.selectedFolderId) {
|
||||
newNotesParentType = 'Folder';
|
||||
} else if (exclusion !== 'Tag' && state.selectedTagId) {
|
||||
newNotesParentType = 'Tag';
|
||||
@ -543,7 +545,7 @@ function handleHistory(state, action) {
|
||||
}
|
||||
|
||||
const reducer = (state = defaultState, action) => {
|
||||
// if (!['SIDE_MENU_OPEN_PERCENT'].includes(action.type)) console.info('Action', action.type);
|
||||
// if (!['SIDE_MENU_OPEN_PERCENT'].includes(action.type)) console.info('Action', action.type, action);
|
||||
|
||||
let newState = state;
|
||||
|
||||
|
Reference in New Issue
Block a user