From c5e6f0830b0ad4f2fcecb5aaa05377b3963d29a5 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Fri, 3 Feb 2023 16:00:37 +0200 Subject: [PATCH] UI: fix loading widget resources, when one of the resources is marked as module --- .../modules/home/components/widget/widget-component.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts b/ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts index 21430038a2..ed518ee54a 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts +++ b/ui-ngx/src/app/modules/home/components/widget/widget-component.service.ts @@ -340,7 +340,7 @@ export class WidgetComponentService { factories: modulesWithFactoriesList.map(mf => mf.factories).flat() }; if (modules && modules.length) { - resModulesWithFactories.modules.concat(modules); + resModulesWithFactories.modules = resModulesWithFactories.modules.concat(modules); } return resModulesWithFactories; }