Skip to content

Commit

Permalink
[APM] Prevent "For the last" expression from jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Apr 3, 2020
1 parent 408baf2 commit 1d38731
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 1d38731

Please sign in to comment.