diff --git a/public/components/integrations/components/__tests__/__snapshots__/added_integration_table.test.tsx.snap b/public/components/integrations/components/__tests__/__snapshots__/added_integration_table.test.tsx.snap
index a58f9f9ec1..351d113ac2 100644
--- a/public/components/integrations/components/__tests__/__snapshots__/added_integration_table.test.tsx.snap
+++ b/public/components/integrations/components/__tests__/__snapshots__/added_integration_table.test.tsx.snap
@@ -186,13 +186,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
],
}
}
@@ -220,13 +213,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
]
}
onChange={[Function]}
@@ -369,13 +355,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
]
}
onChange={[Function]}
@@ -560,157 +539,6 @@ exports[`Added Integration Table View Test Renders added integration table view
-
-
- Data Source Name
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="field_value_selection_1"
- isOpen={false}
- ownFocus={true}
- panelClassName="euiFilterGroup__popoverPanel"
- panelPaddingSize="none"
- >
-
-
-
-
-
-
-
-
-
-
-
@@ -1860,13 +1688,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
],
}
}
@@ -1894,13 +1715,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
]
}
onChange={[Function]}
@@ -2043,13 +1857,6 @@ exports[`Added Integration Table View Test Renders added integration table view
],
"type": "field_value_selection",
},
- Object {
- "field": "dataSourceMDSLabel",
- "multiSelect": false,
- "name": "Data Source Name",
- "options": undefined,
- "type": "field_value_selection",
- },
]
}
onChange={[Function]}
@@ -2235,158 +2042,6 @@ exports[`Added Integration Table View Test Renders added integration table view
-
-
- Data Source Name
-
- }
- closePopover={[Function]}
- display="inlineBlock"
- hasArrow={true}
- id="field_value_selection_1"
- isOpen={false}
- ownFocus={true}
- panelClassName="euiFilterGroup__popoverPanel"
- panelPaddingSize="none"
- >
-
-
-
-
-
-
-
-
-
-
-
diff --git a/public/components/integrations/components/added_integration_table.tsx b/public/components/integrations/components/added_integration_table.tsx
index ff350033ba..47abcbde61 100644
--- a/public/components/integrations/components/added_integration_table.tsx
+++ b/public/components/integrations/components/added_integration_table.tsx
@@ -140,7 +140,7 @@ export function AddedIntegrationsTable(props: AddedIntegrationsTableProps) {
mdsLabels = [
...new Set(
props.data.hits.flatMap((hit) =>
- hit.references.length > 0 ? hit.references.map((ref) => ref.name || 'Local cluster') : []
+ hit.references?.length > 0 ? hit.references.map((ref) => ref.name || 'Local cluster') : []
)
),
].sort();
@@ -162,17 +162,21 @@ export function AddedIntegrationsTable(props: AddedIntegrationsTableProps) {
view: name,
})),
},
- {
- type: 'field_value_selection' as const,
- field: 'dataSourceMDSLabel',
- name: 'Data Source Name',
- multiSelect: false,
- options: mdsLabels?.map((name) => ({
- name,
- value: name,
- view: name,
- })),
- },
+ ...(dataSourceEnabled
+ ? [
+ {
+ type: 'field_value_selection' as const,
+ field: 'dataSourceMDSLabel',
+ name: 'Data Source Name',
+ multiSelect: false,
+ options: mdsLabels?.map((name) => ({
+ name,
+ value: name,
+ view: name,
+ })),
+ },
+ ]
+ : []),
],
};