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

Remove initial name from datasource
This commit is contained in:
Igor Kulikov 2023-09-15 12:18:13 +03:00 committed by GitHub
commit b224d8a00a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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