mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Table: Don't error if first frame is field-less (empty response) (#89867)
This commit is contained in:
parent
cc5b4d6a94
commit
52d476db05
@ -26,7 +26,7 @@ export function TablePanel(props: Props) {
|
||||
? migrateFromParentRowIndexToNestedFrames(data.series)
|
||||
: data.series;
|
||||
const count = frames?.length;
|
||||
const hasFields = frames[0]?.fields.length;
|
||||
const hasFields = frames.some((frame) => frame.fields.length > 0);
|
||||
const currentIndex = getCurrentFrameIndex(frames, options);
|
||||
const main = frames[currentIndex];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user