mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Fixes #2618: Fixed renaming tag issue
This commit is contained in:
parent
61d3582357
commit
e7b11a2d82
@ -650,8 +650,12 @@ const reducer = (state = defaultState, action) => {
|
||||
break;
|
||||
|
||||
case 'TAG_UPDATE_ONE':
|
||||
{
|
||||
// We only want to update the selected note tags if the tag belongs to the currently open note
|
||||
const selectedNoteHasTag = !!state.selectedNoteTags.find(tag => tag.id === action.item.id);
|
||||
newState = updateOneItem(state, action);
|
||||
newState = updateOneItem(newState, action, 'selectedNoteTags');
|
||||
if (selectedNoteHasTag) newState = updateOneItem(newState, action, 'selectedNoteTags');
|
||||
}
|
||||
break;
|
||||
|
||||
case 'NOTE_TAG_REMOVE':
|
||||
|
Loading…
Reference in New Issue
Block a user