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);
 | 
			
		||||
    if (newDatasource.type === DatasourceType.function) {
 | 
			
		||||
      newDatasource.type = DatasourceType.entity;
 | 
			
		||||
      newDatasource.name = '';
 | 
			
		||||
      if (widgetTypeDescriptor.hasBasicMode && config.configMode === WidgetConfigMode.basic) {
 | 
			
		||||
        newDatasource.type = DatasourceType.device;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user