Skip to content

Commit

Permalink
Update x-pack/plugins/stack_alerts/server/alert_types/es_query/alert_…
Browse files Browse the repository at this point in the history
…type.ts

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
  • Loading branch information
dimaanj and kertal authored May 20, 2022
1 parent 5d6d227 commit 7ee6dab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,10 @@ export function getAlertType(
},
useSavedObjectReferences: {
extractReferences: (params) => {
const [searchConfiguration, references] = extractReferences(params.searchConfiguration);

if (isEsQueryAlert(params.searchType)) {
return { params: params as EsQueryAlertParamsExtractedParams, references };
return { params: params as EsQueryAlertParamsExtractedParams, references: [] };
}
const [searchConfiguration, references] = extractReferences(params.searchConfiguration);
const newParams = { ...params, searchConfiguration } as EsQueryAlertParamsExtractedParams;
return { params: newParams, references };
},
Expand Down

0 comments on commit 7ee6dab

Please sign in to comment.