Skip to content

Commit

Permalink
[7.7] [APM] Prevent "For the last" expression from jumping (#6… (elas…
Browse files Browse the repository at this point in the history
…tic#62592)

Closes elastic#61063.

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
dgieselaar and elasticmachine authored Apr 6, 2020
1 parent affd7ee commit 2663da0
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 2663da0

Please sign in to comment.