Skip to content

Commit b63e18e

Browse files
ziomeckaKatarzyna Ziomek-Zdanowicz
and
Katarzyna Ziomek-Zdanowicz
authored
8740 Fix variables in titles by using PanelHeader component to render panel header (#64)
Co-authored-by: Katarzyna Ziomek-Zdanowicz <[email protected]>
1 parent 86844f8 commit b63e18e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,7 @@ export class PanelStateWrapper extends PureComponent<Props, State> {
625625
className={containerClassNames}
626626
aria-label={selectors.components.Panels.Panel.containerByTitle(panel.title)}
627627
>
628-
{FNDashboard ? (
629-
<p style={FN_TITLE_STYLE}>{panel.title}</p>
630-
) : (
628+
<div style={FNDashboard ? FN_TITLE_STYLE : {}}>
631629
<PanelHeader
632630
panel={panel}
633631
dashboard={dashboard}
@@ -640,7 +638,7 @@ export class PanelStateWrapper extends PureComponent<Props, State> {
640638
alertState={alertState}
641639
data={data}
642640
/>
643-
)}
641+
</div>
644642
<ErrorBoundary
645643
dependencies={[data, plugin, panel.getOptions()]}
646644
onError={this.onPanelError}

0 commit comments

Comments
 (0)