mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 16:27:02 -06:00
Flame Graph: Fix crash when it receives empty data (#95604)
flame graph crash
This commit is contained in:
parent
c7aef6a375
commit
3012d4c043
@ -237,7 +237,7 @@ export function checkFields(data: DataFrame): CheckFieldsResult | undefined {
|
||||
|
||||
for (const field of fields) {
|
||||
const [name, types] = field;
|
||||
const frameField = data.fields.find((f) => f.name === name);
|
||||
const frameField = data?.fields.find((f) => f.name === name);
|
||||
if (!frameField) {
|
||||
missingFields.push(name);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user