From f104741448935628d19565722575ac6625b59739 Mon Sep 17 00:00:00 2001 From: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Fri, 3 Dec 2021 10:08:42 +0000 Subject: [PATCH] BarGauge: Unfilled area shown with data links (#42676) Closes #37623 --- public/app/plugins/panel/bargauge/BarGaugePanel.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx index 2288c95b756..3a54036363c 100644 --- a/public/app/plugins/panel/bargauge/BarGaugePanel.tsx +++ b/public/app/plugins/panel/bargauge/BarGaugePanel.tsx @@ -28,7 +28,7 @@ export class BarGaugePanel extends PureComponent> { let processor: DisplayProcessor | undefined = undefined; if (view && isNumber(colIndex)) { - processor = view!.getFieldDisplayProcessor(colIndex as number); + processor = view.getFieldDisplayProcessor(colIndex); } return ( @@ -57,13 +57,14 @@ export class BarGaugePanel extends PureComponent> { if (hasLinks && getLinks) { return ( - - {(api) => { - return this.renderComponent(valueProps, api); - }} - +
+ + {(api) => this.renderComponent(valueProps, api)} + +
); } + return this.renderComponent(valueProps, {}); };