panel Inspect: improve structure debugging (#26065)

This commit is contained in:
Ryan McKinley 2020-07-04 15:14:57 -07:00 committed by GitHub
parent 8be735a6ec
commit af5dff8a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}),
};
});
}