Fix entities count datasource label overwriting, configured label was never displayed
This commit is contained in:
parent
08e517a6ee
commit
f6957f836c
@ -819,12 +819,14 @@ export function updateDatasourceFromEntityInfo(datasource: Datasource, entity: E
|
|||||||
datasource.entityId = entity.id;
|
datasource.entityId = entity.id;
|
||||||
datasource.entityType = entity.entityType;
|
datasource.entityType = entity.entityType;
|
||||||
if (datasource.type === DatasourceType.entity || datasource.type === DatasourceType.entityCount) {
|
if (datasource.type === DatasourceType.entity || datasource.type === DatasourceType.entityCount) {
|
||||||
datasource.entityName = entity.name;
|
if (datasource.type === DatasourceType.entity) {
|
||||||
datasource.entityLabel = entity.label;
|
datasource.entityName = entity.name;
|
||||||
datasource.name = entity.name;
|
datasource.entityLabel = entity.label;
|
||||||
datasource.entityDescription = entity.entityDescription;
|
datasource.name = entity.name;
|
||||||
datasource.entity.label = entity.label;
|
datasource.entityDescription = entity.entityDescription;
|
||||||
datasource.entity.name = entity.name;
|
datasource.entity.label = entity.label;
|
||||||
|
datasource.entity.name = entity.name;
|
||||||
|
}
|
||||||
if (createFilter) {
|
if (createFilter) {
|
||||||
datasource.entityFilter = {
|
datasource.entityFilter = {
|
||||||
type: AliasFilterType.singleEntity,
|
type: AliasFilterType.singleEntity,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user