mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panels: Fixes issue with showing 'Cannot visualize data' when there issue really was no data (#50485)
This commit is contained in:
parent
85ecf997be
commit
56a9994a13
@ -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…
Reference in New Issue
Block a user