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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|
|