mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 23:44:25 +01:00
chore(react/launch_bar): bring back reporting widget that failed
This commit is contained in:
parent
d511085db3
commit
3410dd4eba
@ -61,7 +61,12 @@ export function CustomWidget({ launcherNote }: { launcherNote: FNote }) {
|
|||||||
parentComponent?.contentSized();
|
parentComponent?.contentSized();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
widgetNote?.executeScript().then(setWidget);
|
widgetNote?.executeScript().then(widget => {
|
||||||
|
if (widget instanceof BasicWidget) {
|
||||||
|
widget._noteId = widgetNote.noteId;
|
||||||
|
}
|
||||||
|
setWidget(widget);
|
||||||
|
});
|
||||||
}, [ widgetNote ]);
|
}, [ widgetNote ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user