panel Inspect: improve structure debugging (#26065)

pull/26071/head
Ryan McKinley 6 years ago committed by GitHub
parent 8be735a6ec
commit af5dff8a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      public/app/features/dashboard/components/Inspector/InspectJSONTab.tsx

@ -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 => {
const { table, fields, ...rest } = frame as any; // remove 'table' from arrow response
return {
...rest,
fields: frame.fields.map(field => {
return chain(field)
.omit('values')
.omit('calcs')
.omit('state')
.omit('display')
.value();
});
return {
...frame,
fields,
}),
};
});
}

Loading…
Cancel
Save