fix(widget): remove redundant note context update in useLegacyWidget

This commit is contained in:
lzinga 2026-01-01 11:05:30 -08:00
parent 0143d6c60d
commit 9879d07bec

View File

@ -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 });
}
}