From 6efe46a2495a1ca44068618e61260a60f8afd762 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 4 Jul 2024 11:45:29 +0300 Subject: [PATCH] refactoring --- .../components/widget/lib/gateway/gateway-logs.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts index dbdf0a4048..7ce8cc7d72 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-logs.component.ts @@ -114,9 +114,9 @@ export class GatewayLogsComponent implements OnInit, AfterViewInit { private updateWidgetTitle(): void { const titlePlaceholder = '${connectorName}'; if (this.ctx.settings.isConnectorLog && this.ctx.settings.connectorLogState) { - const connector = this.ctx.stateController.getStateParams()[this.ctx.settings.connectorLogState]; const widgetTitle = this.ctx['widget'].config.title; if (widgetTitle.includes(titlePlaceholder)) { + const connector = this.ctx.stateController.getStateParams()[this.ctx.settings.connectorLogState]; this.ctx.widgetTitle = widgetTitle.replace(titlePlaceholder, connector.key); } else { this.ctx.widgetTitle = widgetTitle;