Skip to content

Commit

Permalink
refactor(notifiers): correctly copy the notifier events
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Mar 27, 2023
1 parent 864871b commit c1855b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifiers/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Update(ctx context.Context, app, ID string, params ProvisionParams) error {

// If there is no selected events, keep the existing ones
if len(params.SelectedEventNames) == 0 {
params.SelectedEventIDs = append(params.SelectedEventIDs, notifier.SelectedEventIDs...)
params.NotifierParams.SelectedEventIDs = append([]string{}, notifier.SelectedEventIDs...)
} else {
for _, name := range params.SelectedEventNames {
for _, t := range eventTypes {
Expand Down

0 comments on commit c1855b0

Please sign in to comment.