You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Electron: When deleting tag that is currently selected, select a new tag or folder
This commit is contained in:
@ -61,6 +61,10 @@ function handleItemDelete(state, action) {
|
||||
const newIndex = previousIndex >= 0 ? newItems[previousIndex].id : null;
|
||||
newState[selectedItemKey] = newIndex;
|
||||
|
||||
if (!newIndex && newState.notesParentType !== 'Folder') {
|
||||
newState.notesParentType = 'Folder';
|
||||
}
|
||||
|
||||
return newState;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user