1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Fixes #3876: Tags could not be selected in some cases

This commit is contained in:
Laurent Cozic 2020-11-09 13:33:12 +00:00
parent 31a0449e71
commit ed71726e87

View File

@ -897,7 +897,7 @@ const reducer = produce((draft: Draft<State> = defaultState, action:any) => {
case 'TAG_SELECT':
if (draft.selectedTagId !== action.id) {
if (draft.selectedTagId !== action.id || draft.notesParentType !== 'Tag') {
draft.selectedTagId = action.id;
if (!action.id) {
draft.notesParentType = defaultNotesParentType(draft, 'Tag');