mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Suppress redundant NoteEditor re-rendering by removing non-changing updates of state.selectedNoteTags (#6470)
This commit is contained in:
parent
c320d2364e
commit
40bc63e7ea
@ -1125,7 +1125,9 @@ const reducer = produce((draft: Draft<State> = defaultState, action: any) => {
|
||||
break;
|
||||
|
||||
case 'SET_NOTE_TAGS':
|
||||
draft.selectedNoteTags = action.items;
|
||||
if (!fastDeepEqual(original(draft.selectedNoteTags), action.items)) {
|
||||
draft.selectedNoteTags = action.items;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'PLUGINLEGACY_DIALOG_SET':
|
||||
|
Loading…
Reference in New Issue
Block a user