diff --git a/x-pack/plugins/apm/public/components/shared/metadata_table/helper.ts b/x-pack/plugins/apm/public/components/shared/metadata_table/helper.ts index c9e0f2aa6674..67e2d2b85500 100644 --- a/x-pack/plugins/apm/public/components/shared/metadata_table/helper.ts +++ b/x-pack/plugins/apm/public/components/shared/metadata_table/helper.ts @@ -43,7 +43,7 @@ export const getSectionsFromFields = (fields: Record) => { const [labelSections, otherSections] = partition( sections, - (section) => section.key === 'labels' + (section) => section.key === 'labels' || section.key === 'numeric_labels' ); return [...labelSections, ...otherSections]; diff --git a/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx b/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx index 084729a08146..f973879c7029 100644 --- a/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx +++ b/x-pack/plugins/apm/public/components/shared/metadata_table/metadata_table.test.tsx @@ -28,11 +28,10 @@ const renderOptions = { describe('MetadataTable', () => { it('shows sections', () => { const sections: SectionDescriptor[] = [ - { key: 'foo', label: 'Foo', required: true, properties: [] }, + { key: 'foo', label: 'Foo', properties: [] }, { key: 'bar', label: 'Bar', - required: false, properties: [ { field: 'props.A', value: ['A'] }, { field: 'props.B', value: ['B'] }, @@ -59,7 +58,6 @@ describe('MetadataTable', () => { { key: 'foo', label: 'Foo', - required: true, properties: [], }, ]; diff --git a/x-pack/plugins/apm/public/components/shared/metadata_table/types.ts b/x-pack/plugins/apm/public/components/shared/metadata_table/types.ts index 3ce7698460f3..fc08f3de2461 100644 --- a/x-pack/plugins/apm/public/components/shared/metadata_table/types.ts +++ b/x-pack/plugins/apm/public/components/shared/metadata_table/types.ts @@ -8,6 +8,5 @@ export interface SectionDescriptor { key: string; label: string; - required?: boolean; properties: Array<{ field: string; value: string[] | number[] }>; }