datatrails: fix: propagate unit to breakdown graphs (#82176)

fix: propagate unit to breakdown graphs
pull/82195/head
Darren Janeczek 1 year ago committed by GitHub
parent b8f7230dee
commit a439ee46bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/trails/ActionTabs/BreakdownScene.tsx

@ -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 expr = queryDef.queries[0].expr.replace(VAR_GROUP_BY_EXP, String(option.value));
const unit = queryDef.unit;
children.push( children.push(
new SceneCSSGridItem({ new SceneCSSGridItem({
@ -215,6 +216,7 @@ export function buildAllLayout(options: Array<SelectableValue<string>>, queryDef
}) })
) )
.setHeaderActions(new SelectLabelAction({ labelName: String(option.value) })) .setHeaderActions(new SelectLabelAction({ labelName: String(option.value) }))
.setUnit(unit)
.build(), .build(),
}) })
); );

Loading…
Cancel
Save