Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/launch_bar): bring back reporting widget that failed

Elian Doran3410dd4ebac9
diff --git a/apps/client/src/widgets/launch_bar/LauncherDefinitions.tsx b/apps/client/src/widgets/launch_bar/LauncherDefinitions.tsx
index 504d4b46a9..f21baa819f 100644
--- a/apps/client/src/widgets/launch_bar/LauncherDefinitions.tsx
+++ b/apps/client/src/widgets/launch_bar/LauncherDefinitions.tsx
@@ -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 (