Merge pull request #9264 from ArtemDzhereleiko/AD/bug-fix/datasources-label
Remove initial name from datasource
This commit is contained in:
commit
b224d8a00a
@ -397,6 +397,7 @@ export class DashboardUtilsService {
|
|||||||
const newDatasource = deepClone(datasource);
|
const newDatasource = deepClone(datasource);
|
||||||
if (newDatasource.type === DatasourceType.function) {
|
if (newDatasource.type === DatasourceType.function) {
|
||||||
newDatasource.type = DatasourceType.entity;
|
newDatasource.type = DatasourceType.entity;
|
||||||
|
newDatasource.name = '';
|
||||||
if (widgetTypeDescriptor.hasBasicMode && config.configMode === WidgetConfigMode.basic) {
|
if (widgetTypeDescriptor.hasBasicMode && config.configMode === WidgetConfigMode.basic) {
|
||||||
newDatasource.type = DatasourceType.device;
|
newDatasource.type = DatasourceType.device;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user