Skip to content

Commit f8f148b

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

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
@@ -612,9 +612,7 @@ export class PanelStateWrapper extends PureComponent<Props, State> {
612612
className={containerClassNames}
613613
aria-label={selectors.components.Panels.Panel.containerByTitle(panel.title)}
614614
>
615-
{FNDashboard ? (
616-
<p style={FN_TITLE_STYLE}>{panel.title}</p>
617-
) : (
615+
<div style={FNDashboard ? FN_TITLE_STYLE : {}}>
618616
<PanelHeader
619617
panel={panel}
620618
dashboard={dashboard}
@@ -627,7 +625,7 @@ export class PanelStateWrapper extends PureComponent<Props, State> {
627625
alertState={alertState}
628626
data={data}
629627
/>
630-
)}
628+
</div>
631629
<ErrorBoundary
632630
dependencies={[data, plugin, panel.getOptions()]}
633631
onError={this.onPanelError}

0 commit comments

Comments
 (0)