[v10.0.x] Dashboard: Fix panel description event triggering every time panel is rendered (#68831)

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Fix panel description event triggering every time panel is rendered (#68791)
This commit is contained in:
Grot (@grafanabot)
2023-05-22 16:11:36 +02:00
committed by GitHub
parent 4b66d1286e
commit e21236b55e
@@ -99,7 +99,7 @@ export function getPanelChromeProps(props: CommonProps) {
/>
);
const description = props.panel.description ? onShowPanelDescription() : undefined;
const description = props.panel.description ? onShowPanelDescription : undefined;
const dragClass =
!(props.isViewing || props.isEditing) && Boolean(props.isDraggable ?? true) ? 'grid-drag-handle' : '';