fix(right_pane): custom widgets not aware of note context

This commit is contained in:
Elian Doran 2025-12-20 11:16:41 +02:00
parent e1df65adce
commit e82e92c22c
No known key found for this signature in database

View File

@ -84,6 +84,7 @@ function CustomWidget({ originalWidget }: { originalWidget: LegacyRightPanelWidg
}
function CustomWidgetContent({ originalWidget }: { originalWidget: LegacyRightPanelWidget }) {
const { noteContext } = useActiveNoteContext();
const [ el ] = useLegacyWidget(() => {
originalWidget.contentSized();
@ -102,6 +103,8 @@ function CustomWidgetContent({ originalWidget }: { originalWidget: LegacyRightPa
};
return originalWidget;
}, {
noteContext
});
return el;