Skip to content

Commit

Permalink
updating snapshot and adding null check on associated detectors
Browse files Browse the repository at this point in the history
  • Loading branch information
amitgalitz committed Jun 12, 2024
1 parent 2198a20 commit fe11802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | undefined>(undefined);

async function getDataSourceId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,11 @@ exports[`<DefineDetector /> Full creating detector definition renders the compon
data-test-subj="comboBoxInput"
tabindex="-1"
>
<p
class="euiComboBoxPlaceholder"
<span
class="euiComboBoxPill euiComboBoxPill--plainText"
>
Find timestamp
</p>
timestamp
</span>
<div
class="euiComboBox__input"
style="font-size: 14px; display: inline-block;"
Expand Down

0 comments on commit fe11802

Please sign in to comment.