mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-20 16:22:42 +00:00
Fix report reason selector in moderation interface not unselecting rules when changing category (#29026)
This commit is contained in:
parent
66dda7c762
commit
9ce914cc89
|
@ -124,7 +124,7 @@ class ReportReasonSelector extends PureComponent {
|
||||||
|
|
||||||
api().put(`/api/v1/admin/reports/${id}`, {
|
api().put(`/api/v1/admin/reports/${id}`, {
|
||||||
category,
|
category,
|
||||||
rule_ids,
|
rule_ids: category === 'violation' ? rule_ids : [],
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue