Skip to content

Commit

Permalink
Update chart preview code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Aug 25, 2020
1 parent ad49663 commit d507d9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export async function getChartPreviewData(
const { rangeFilter } = buildFiltersFromCriteria(expandedAlertParams, timestampField);

const query = isGrouped
? getGroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern)
: getUngroupedESQuery(expandedAlertParams, sourceConfiguration.configuration, indexPattern);
? getGroupedESQuery(expandedAlertParams, timestampField, indexPattern)
: getUngroupedESQuery(expandedAlertParams, timestampField, indexPattern);

if (!query) {
throw new Error('ES query could not be built from the provided alert params');
Expand Down

0 comments on commit d507d9e

Please sign in to comment.