Commit af5dff8a by Ryan McKinley Committed by GitHub

panel Inspect: improve structure debugging (#26065)

parent 8be735a6
...@@ -74,16 +74,16 @@ export class InspectJSONTab extends PureComponent<Props, State> { ...@@ -74,16 +74,16 @@ export class InspectJSONTab extends PureComponent<Props, State> {
return { note: 'Missing Response Data' }; return { note: 'Missing Response Data' };
} }
return this.props.data.series.map(frame => { return this.props.data.series.map(frame => {
const fields = frame.fields.map(field => { const { table, fields, ...rest } = frame as any; // remove 'table' from arrow response
return chain(field)
.omit('values')
.omit('calcs')
.omit('display')
.value();
});
return { return {
...frame, ...rest,
fields, fields: frame.fields.map(field => {
return chain(field)
.omit('values')
.omit('state')
.omit('display')
.value();
}),
}; };
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment