Skip to content

Commit

Permalink
updating snapshot and adding null check on associated detectors (#789) (
Browse files Browse the repository at this point in the history
#791)

Signed-off-by: Amit Galitzky <amgalitz@amazon.com>
(cherry picked from commit 6588710)

Co-authored-by: Amit Galitzky <amgalitz@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and amitgalitz committed Jun 12, 2024
1 parent d6686dc commit 49b35f0
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 49b35f0

Please sign in to comment.