Dashboard: Fix panel description event triggering every time panel is rendered (#68791)

This commit is contained in:
Alexa V 2023-05-22 15:58:42 +02:00 committed by GitHub
parent 0b6c5722a5
commit 1016c81744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' : '';