Panels: Fixes issue with showing 'Cannot visualize data' when there issue really was no data (#50485)

pull/50624/head
Torkel Ödegaard 3 years ago committed by GitHub
parent 85ecf997be
commit 56a9994a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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';
}

Loading…
Cancel
Save