Skip to content

Commit

Permalink
fix: ensure excludeHitsFromPreviousRun fallbacks to DEFAULT_VALUES.…
Browse files Browse the repository at this point in the history
…EXCLUDE_PREVIOUS_HIST when not set
  • Loading branch information
tkajtoch committed Jun 12, 2024
1 parent 29b54e1 commit 5b06765
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ export const EsQueryExpression: React.FC<
errors={errors}
hasValidationErrors={hasExpressionValidationErrors(currentRuleParams, isServerless)}
onTestFetch={onTestQuery}
excludeHitsFromPreviousRun={excludeHitsFromPreviousRun}
excludeHitsFromPreviousRun={
excludeHitsFromPreviousRun ?? DEFAULT_VALUES.EXCLUDE_PREVIOUS_HITS
}
onChangeExcludeHitsFromPreviousRun={useCallback(
(exclude) => setParam('excludeHitsFromPreviousRun', exclude),
[setParam]
Expand Down

0 comments on commit 5b06765

Please sign in to comment.