@theseam/ui-common 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -741,10 +741,10 @@ class DashboardWidgetsService {
741
741
  })));
742
742
  }
743
743
  createWidgetPortal(def, vcr) {
744
+ const injector = Injector.create({ providers: [
745
+ { provide: THESEAM_WIDGET_DATA, useValue: { widgetId: def.widgetId } }
746
+ ], parent: this._viewContainerRefSubject.value?.injector });
744
747
  if (typeof def.component === 'string') {
745
- const injector = Injector.create({ providers: [
746
- { provide: THESEAM_WIDGET_DATA, useValue: { widgetId: def.widgetId } }
747
- ], parent: this._viewContainerRefSubject.value?.injector });
748
748
  return this._dynamicComponentLoaderModule
749
749
  .getComponentFactory(def.component)
750
750
  .pipe(map(componentFactory => {
@@ -754,8 +754,8 @@ class DashboardWidgetsService {
754
754
  }), take(1));
755
755
  }
756
756
  return def.componentFactoryResolver
757
- ? of(new ComponentPortal(def.component, vcr, undefined, def.componentFactoryResolver))
758
- : of(new ComponentPortal(def.component, vcr));
757
+ ? of(new ComponentPortal(def.component, vcr, injector, def.componentFactoryResolver))
758
+ : of(new ComponentPortal(def.component, vcr, injector));
759
759
  }
760
760
  updateOrder() {
761
761
  return this.widgetColumns$