mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-27 20:50:28 +01:00
Fix report reason selector in moderation interface not unselecting rules when changing category (#29026)
This commit is contained in:
parent
c06436eb91
commit
e1be281e3d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue