diff --git a/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx b/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx index bc0a6891..fb983465 100644 --- a/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx +++ b/public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx @@ -77,7 +77,7 @@ function AssociatedDetectors({ embeddable, closeFlyout, setMode }) { (state: AppState) => state.ad.errorMessage ); const embeddableTitle = embeddable.getTitle(); - const indexPatternId = embeddable.vis.data.aggs.indexPattern.id; + const indexPatternId = embeddable.vis.data.aggs != null ? embeddable.vis.data.aggs.indexPattern.id : ""; const [dataSourceId, setDataSourceId] = useState(undefined); async function getDataSourceId() { diff --git a/public/pages/DefineDetector/containers/__tests__/__snapshots__/DefineDetector.test.tsx.snap b/public/pages/DefineDetector/containers/__tests__/__snapshots__/DefineDetector.test.tsx.snap index 93f0c0c4..03db2f2e 100644 --- a/public/pages/DefineDetector/containers/__tests__/__snapshots__/DefineDetector.test.tsx.snap +++ b/public/pages/DefineDetector/containers/__tests__/__snapshots__/DefineDetector.test.tsx.snap @@ -528,11 +528,11 @@ exports[` Full creating detector definition renders the compon data-test-subj="comboBoxInput" tabindex="-1" > -

- Find timestamp -

+ timestamp +