From 4fbc6e7f203221d8b3915575fd6b5d422ebc074e Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Fri, 15 Sep 2023 10:44:37 +0300 Subject: [PATCH] UI: Remove initial name from datasources --- ui-ngx/src/app/core/services/dashboard-utils.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-ngx/src/app/core/services/dashboard-utils.service.ts b/ui-ngx/src/app/core/services/dashboard-utils.service.ts index bb4c738516..0e8cba3f80 100644 --- a/ui-ngx/src/app/core/services/dashboard-utils.service.ts +++ b/ui-ngx/src/app/core/services/dashboard-utils.service.ts @@ -397,6 +397,7 @@ export class DashboardUtilsService { const newDatasource = deepClone(datasource); if (newDatasource.type === DatasourceType.function) { newDatasource.type = DatasourceType.entity; + newDatasource.name = ''; if (widgetTypeDescriptor.hasBasicMode && config.configMode === WidgetConfigMode.basic) { newDatasource.type = DatasourceType.device; }