From 5ca6b7cd2d6cb1099168de559a8f30e0e4976cb4 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 10 Jun 2022 17:36:00 -0400 Subject: [PATCH] Panels: Fixes issue with showing 'Cannot visualize data' when there issue really was no data (#50485) (#50615) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 56a9994a1348c82228a151596f051ab7d1848897) Co-authored-by: Torkel Ödegaard --- public/app/features/panel/components/PanelDataErrorView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/panel/components/PanelDataErrorView.tsx b/public/app/features/panel/components/PanelDataErrorView.tsx index a58848c432c..a5173f79a9c 100644 --- a/public/app/features/panel/components/PanelDataErrorView.tsx +++ b/public/app/features/panel/components/PanelDataErrorView.tsx @@ -67,7 +67,7 @@ function getMessageFor( } // In some cases there is a data frame but with no fields - if (!data.series || data.series.length === 0 || (data.series.length === 1 && data.series[0].fields.length === 0)) { + if (!data.series || data.series.length === 0 || (data.series.length === 1 && data.series[0].length === 0)) { return fieldConfig?.defaults.noValue ?? 'No data'; }