mirror of
https://github.com/zadam/trilium.git
synced 2026-01-07 07:04:25 +01:00
fix(widget): remove redundant note context update in useLegacyWidget
This commit is contained in:
parent
0143d6c60d
commit
9879d07bec
@ -677,7 +677,6 @@ export function useLegacyWidget<T extends BasicWidget>(widgetFactory: () => T, {
|
||||
// The event system may have already updated the widget, in which case
|
||||
// widget.noteContext will already equal noteContext.
|
||||
if (widget.noteContext !== noteContext) {
|
||||
widget.setNoteContextEvent({ noteContext });
|
||||
widget.activeContextChangedEvent({ noteContext });
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user