Skip to content

Commit

Permalink
Fix report reason selector in moderation interface not unselecting ru…
Browse files Browse the repository at this point in the history
…les when changing category (#29026)
  • Loading branch information
ClearlyClaire authored Feb 6, 2024
1 parent 66dda7c commit 9ce914c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ReportReasonSelector extends PureComponent {

api().put(`/api/v1/admin/reports/${id}`, {
category,
rule_ids,
rule_ids: category === 'violation' ? rule_ids : [],
}).catch(err => {
console.error(err);
});
Expand Down

0 comments on commit 9ce914c

Please sign in to comment.