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 7ce8cc7d72..bb3445ad62 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 @@ -112,14 +112,12 @@ export class GatewayLogsComponent implements OnInit, AfterViewInit { } private updateWidgetTitle(): void { - const titlePlaceholder = '${connectorName}'; if (this.ctx.settings.isConnectorLog && this.ctx.settings.connectorLogState) { const widgetTitle = this.ctx['widget'].config.title; + const titlePlaceholder = '${connectorName}'; 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; } } }