Skip to content

Commit

Permalink
fix webhook expansion when slack is disabled (#3264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus authored Sep 6, 2023
1 parent 0cd7d32 commit ea947e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/app/escalation-policies/PolicyStepForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ function PolicyStepForm(props) {
<Step>
<StepButton
aria-expanded={(
step === (cfg['Webhook.Enable'] ? 4 : 3)
step === (cfg['Slack.Enable'] ? 4 : 3)
).toString()}
data-cy='webhook-step'
icon={<WebhookIcon />}
optional={optionalText}
onClick={() =>
handleStepChange(cfg['Webhook.Enable'] ? 4 : 3)
handleStepChange(cfg['Slack.Enable'] ? 4 : 3)
}
tabIndex={-1}
>
Expand Down

0 comments on commit ea947e1

Please sign in to comment.