From 1016c817445cbc6cce39f5718cb58bf74df989db Mon Sep 17 00:00:00 2001 From: Alexa V <239999+axelavargas@users.noreply.github.com> Date: Mon, 22 May 2023 15:58:42 +0200 Subject: [PATCH] Dashboard: Fix panel description event triggering every time panel is rendered (#68791) --- public/app/features/dashboard/utils/getPanelChromeProps.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/utils/getPanelChromeProps.tsx b/public/app/features/dashboard/utils/getPanelChromeProps.tsx index 32e4b6528d9..21ec9e72296 100644 --- a/public/app/features/dashboard/utils/getPanelChromeProps.tsx +++ b/public/app/features/dashboard/utils/getPanelChromeProps.tsx @@ -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' : '';