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

This commit is contained in:
Torkel Ödegaard 2022-06-10 16:07:38 +02:00 committed by GitHub
parent 85ecf997be
commit 56a9994a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}