diff --git a/public/app/features/correlations/Forms/QueryEditorField.tsx b/public/app/features/correlations/Forms/QueryEditorField.tsx index bb199d6bb04..b2267c56a4d 100644 --- a/public/app/features/correlations/Forms/QueryEditorField.tsx +++ b/public/app/features/correlations/Forms/QueryEditorField.tsx @@ -81,7 +81,7 @@ export const QueryEditorField = ({ dsUid, invalid, error, name }: Props) => { if (datasource) { runRequest(datasource, transaction.request).subscribe((panelData) => { -if ( + if ( !panelData || panelData.state === 'Error' || (panelData.state === 'Done' && panelData.series.length === 0)