Skip to content

Commit 6588710

Browse files
authored
updating snapshot and adding null check on associated detectors (opensearch-project#789)
Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
1 parent 2198a20 commit 6588710

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public/components/FeatureAnywhereContextMenu/AssociatedDetectors/containers/AssociatedDetectors.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function AssociatedDetectors({ embeddable, closeFlyout, setMode }) {
7777
(state: AppState) => state.ad.errorMessage
7878
);
7979
const embeddableTitle = embeddable.getTitle();
80-
const indexPatternId = embeddable.vis.data.aggs.indexPattern.id;
80+
const indexPatternId = embeddable.vis.data.aggs != null ? embeddable.vis.data.aggs.indexPattern.id : "";
8181
const [dataSourceId, setDataSourceId] = useState<string | undefined>(undefined);
8282

8383
async function getDataSourceId() {

public/pages/DefineDetector/containers/__tests__/__snapshots__/DefineDetector.test.tsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,11 @@ exports[`<DefineDetector /> Full creating detector definition renders the compon
528528
data-test-subj="comboBoxInput"
529529
tabindex="-1"
530530
>
531-
<p
532-
class="euiComboBoxPlaceholder"
531+
<span
532+
class="euiComboBoxPill euiComboBoxPill--plainText"
533533
>
534-
Find timestamp
535-
</p>
534+
timestamp
535+
</span>
536536
<div
537537
class="euiComboBox__input"
538538
style="font-size: 14px; display: inline-block;"

0 commit comments

Comments
 (0)