Browse Source

optimization

pull/12811/head
mpetrov 2 years ago
parent
commit
9d4be3a9b3
  1. 8
      ui-ngx/src/app/modules/home/components/calculated-fields/calculated-fields-table-config.ts

8
ui-ngx/src/app/modules/home/components/calculated-fields/calculated-fields-table-config.ts

@ -153,13 +153,15 @@ export class CalculatedFieldsTableConfig extends EntityTableConfig<CalculatedFie
...this.additionalDebugActionConfig, ...this.additionalDebugActionConfig,
action: () => this.openDebugEventsDialog(calculatedField) action: () => this.openDebugEventsDialog(calculatedField)
}; };
const { viewContainerRef } = this.getTable();
if ($event) { if ($event) {
$event.stopPropagation(); $event.stopPropagation();
} }
this.entityDebugSettingsService.viewContainerRef = viewContainerRef; const { viewContainerRef, renderer } = this.entityDebugSettingsService;
this.entityDebugSettingsService.renderer = this.renderer; if (!viewContainerRef || !renderer) {
this.entityDebugSettingsService.viewContainerRef = this.getTable().viewContainerRef;
this.entityDebugSettingsService.renderer = this.renderer;
}
this.entityDebugSettingsService.openDebugStrategyPanel({ this.entityDebugSettingsService.openDebugStrategyPanel({
debugSettings, debugSettings,

Loading…
Cancel
Save