You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Desktop: Fixes #2618: Fixed renaming tag issue
This commit is contained in:
@ -650,8 +650,12 @@ const reducer = (state = defaultState, action) => {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'TAG_UPDATE_ONE':
|
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(state, action);
|
||||||
newState = updateOneItem(newState, action, 'selectedNoteTags');
|
if (selectedNoteHasTag) newState = updateOneItem(newState, action, 'selectedNoteTags');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'NOTE_TAG_REMOVE':
|
case 'NOTE_TAG_REMOVE':
|
||||||
|
Reference in New Issue
Block a user