diff --git a/public/app/features/query/components/QueryEditorRow.tsx b/public/app/features/query/components/QueryEditorRow.tsx index 3ab50c3ca27..7758efe5509 100644 --- a/public/app/features/query/components/QueryEditorRow.tsx +++ b/public/app/features/query/components/QueryEditorRow.tsx @@ -133,9 +133,7 @@ export class QueryEditorRow extends PureComponent, @@ -245,10 +243,7 @@ export class QueryEditorRow extends PureComponent { @@ -268,20 +263,14 @@ export class QueryEditorRow extends PureComponent { const { query, onChange, onRunQuery, onQueryToggled } = this.props; onChange({ ...query, hide: !query.hide }); onRunQuery(); - - if (onQueryToggled) { - onQueryToggled(query.hide); - } + onQueryToggled?.(query.hide); reportInteraction('query_editor_row_hide_query_clicked', { hide: !query.hide, @@ -569,10 +558,9 @@ export class QueryEditorRow extends PureComponent