Skip to content

Commit

Permalink
[APM] Prevent "For the last" expression from jumping (elastic#62414)
Browse files Browse the repository at this point in the history
Closes elastic#61063.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
dgieselaar and elasticmachine committed Apr 6, 2020
1 parent f210959 commit 75116e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function ErrorRateAlertTrigger(props: Props) {
</PopoverExpression>,
<ForLastExpression
onChangeWindowSize={windowSize =>
setAlertParams('windowSize', windowSize)
setAlertParams('windowSize', windowSize || '')
}
onChangeWindowUnit={windowUnit =>
setAlertParams('windowUnit', windowUnit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function TransactionDurationAlertTrigger(props: Props) {
</PopoverExpression>,
<ForLastExpression
onChangeWindowSize={timeWindowSize =>
setAlertParams('windowSize', timeWindowSize)
setAlertParams('windowSize', timeWindowSize || '')
}
onChangeWindowUnit={timeWindowUnit =>
setAlertParams('windowUnit', timeWindowUnit)
Expand Down

0 comments on commit 75116e1

Please sign in to comment.