Browse Source

Merge pull request #9264 from ArtemDzhereleiko/AD/bug-fix/datasources-label

Remove initial name from datasource
pull/9273/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
b224d8a00a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui-ngx/src/app/core/services/dashboard-utils.service.ts

1
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;
}

Loading…
Cancel
Save