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

(cherry picked from commit 56a9994a13)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-10 14:36:00 -07:00
committed by GitHub
co-authored by Torkel Ödegaard
parent d301b6611f
commit 5ca6b7cd2d
@@ -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';
}