mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-19 22:22:53 -05:00
[Glitch] Fix report reason selector in moderation interface not unselecting rules when changing category
Port 9ce914cc897d2b1100cee8cb6d792a2283d877ec to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
3894674200
commit
3c36e1be68
@ -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…
x
Reference in New Issue
Block a user