mirror of https://github.com/tootsuite/mastodon
Fix report reason selector in moderation interface not unselecting rules when changing category (#29026)
parent
2084f1a081
commit
6383a2e4ee
|
@ -121,7 +121,7 @@ class ReportReasonSelector extends React.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 New Issue