From e0e4735b03c318c608de26beeaa2b57cc58051ec Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 29 Sep 2020 08:11:52 +0100 Subject: [PATCH] Desktop: Fixes #3754: Refresh search results when searching by tag and when a tag is changed --- ReactNativeClient/lib/BaseApplication.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/BaseApplication.js b/ReactNativeClient/lib/BaseApplication.js index 567b527de..2cef3de5c 100644 --- a/ReactNativeClient/lib/BaseApplication.js +++ b/ReactNativeClient/lib/BaseApplication.js @@ -499,7 +499,11 @@ class BaseApplication { refreshNotesUseSelectedNoteId = true; } - if (action.type == 'TAG_SELECT' || action.type === 'TAG_DELETE') { + // Should refresh the notes when: + // - A tag is selected, to show the notes for that tag + // - When a tag is updated so that when searching by tags, the search results are updated + // https://github.com/laurent22/joplin/issues/3754 + if (['TAG_SELECT', 'TAG_DELETE', 'TAG_UPDATE_ONE', 'NOTE_TAG_REMOVE'].includes(action.type)) { refreshNotes = true; }