mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
panel Inspect: improve structure debugging (#26065)
This commit is contained in:
parent
8be735a6ec
commit
af5dff8a1b
@ -74,16 +74,16 @@ export class InspectJSONTab extends PureComponent<Props, State> {
|
||||
return { note: 'Missing Response Data' };
|
||||
}
|
||||
return this.props.data.series.map(frame => {
|
||||
const fields = frame.fields.map(field => {
|
||||
return chain(field)
|
||||
.omit('values')
|
||||
.omit('calcs')
|
||||
.omit('display')
|
||||
.value();
|
||||
});
|
||||
const { table, fields, ...rest } = frame as any; // remove 'table' from arrow response
|
||||
return {
|
||||
...frame,
|
||||
fields,
|
||||
...rest,
|
||||
fields: frame.fields.map(field => {
|
||||
return chain(field)
|
||||
.omit('values')
|
||||
.omit('state')
|
||||
.omit('display')
|
||||
.value();
|
||||
}),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user