datatrails: fix: propagate unit to breakdown graphs (#82176)
fix: propagate unit to breakdown graphs
This commit is contained in:
@@ -196,6 +196,7 @@ export function buildAllLayout(options: Array<SelectableValue<string>>, queryDef
|
||||
}
|
||||
|
||||
const expr = queryDef.queries[0].expr.replace(VAR_GROUP_BY_EXP, String(option.value));
|
||||
const unit = queryDef.unit;
|
||||
|
||||
children.push(
|
||||
new SceneCSSGridItem({
|
||||
@@ -215,6 +216,7 @@ export function buildAllLayout(options: Array<SelectableValue<string>>, queryDef
|
||||
})
|
||||
)
|
||||
.setHeaderActions(new SelectLabelAction({ labelName: String(option.value) }))
|
||||
.setUnit(unit)
|
||||
.build(),
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user