Skip to content

Build your personal knowledge base with Trilium Notes

Only add widgets that are executable (#1875)

cheed9e8cff00fdf
diff --git a/src/public/app/services/bundle.js b/src/public/app/services/bundle.js
index 24e294b1c4..2c94f61e5c 100644
--- a/src/public/app/services/bundle.js
+++ b/src/public/app/services/bundle.js
@@ -64,13 +64,12 @@ async function getWidgetBundlesByParent() {
try {
widget = await executeBundle(bundle);
+ widgetsByParent.add(widget);
}
catch (e) {
logError("Widget initialization failed: ", e);
continue;
}
-
- widgetsByParent.add(widget);
}
return widgetsByParent;