From d9e8cff00fdf86993ad53c103c76e9970c21a843 Mon Sep 17 00:00:00 2001 From: chee Date: Wed, 21 Apr 2021 21:25:52 +0100 Subject: [PATCH] Only add widgets that are executable (#1875) closes #1874 --- src/public/app/services/bundle.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/public/app/services/bundle.js b/src/public/app/services/bundle.js index 24e294b1c..2c94f61e5 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;