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 <[email protected]>
  • Loading branch information
dgieselaar and elasticmachine committed Apr 6, 2020
1 parent b8a1c15 commit 237c034
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 237c034

Please sign in to comment.