client: Fix double errors if not returning a widget

This commit is contained in:
Elian Doran 2024-10-25 20:22:10 +03:00
parent 70d55097ee
commit 03a23d15f9
No known key found for this signature in database

View File

@ -76,10 +76,11 @@ async function getWidgetBundlesByParent() {
try { try {
widget = await executeBundle(bundle); widget = await executeBundle(bundle);
widget._noteId = bundle.noteId; if (widget) {
widgetsByParent.add(widget); widget._noteId = bundle.noteId;
} widgetsByParent.add(widget);
catch (e) { }
} catch (e) {
const noteId = bundle.noteId; const noteId = bundle.noteId;
const note = await froca.getNote(noteId); const note = await froca.getNote(noteId);
toastService.showPersistent({ toastService.showPersistent({