From 29d323dcd559b3ba9aca0b2c61cedbc2a63cf8ba Mon Sep 17 00:00:00 2001 From: Laura Benz Date: Wed, 4 Jan 2023 16:07:00 +0100 Subject: [PATCH] refactor: fix prettier issue --- public/app/features/correlations/Forms/QueryEditorField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)