1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Desktop: Fix to update tag list when note is deleted. (#2554)

* Ensure tag list updated when note is deleted.

Add integration tests.

* Revert whitespace changes.
This commit is contained in:
mic704b
2020-02-27 10:42:14 +11:00
committed by GitHub
parent ef8af13500
commit 3830f5ee46
2 changed files with 140 additions and 1 deletions

View File

@ -28,7 +28,8 @@ const reduxSharedMiddleware = async function(store, next, action) {
refreshTags = true;
}
if (action.type === 'NOTE_SELECT' ||
if (action.type === 'NOTE_DELETE' ||
action.type === 'NOTE_SELECT' ||
action.type === 'NOTE_SELECT_TOGGLE' ||
action.type === 'NOTE_SET_NEW_ONE') {
let noteTags = [];