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

This commit is contained in:
Elian Doran 2025-12-05 11:40:50 +02:00
parent d511085db3
commit 3410dd4eba
No known key found for this signature in database

View File

@ -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 (