mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 15:24:24 +01:00
fix(right_pane): custom widgets not aware of note context
This commit is contained in:
parent
e1df65adce
commit
e82e92c22c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user