mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 15:34:26 +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();
|
||||
|
||||
useEffect(() => {
|
||||
widgetNote?.executeScript().then(setWidget);
|
||||
widgetNote?.executeScript().then(widget => {
|
||||
if (widget instanceof BasicWidget) {
|
||||
widget._noteId = widgetNote.noteId;
|
||||
}
|
||||
setWidget(widget);
|
||||
});
|
||||
}, [ widgetNote ]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user