Fix report reason selector in moderation interface not unselecting rules when changing category (#29026)

shrike
Claire 2024-02-06 10:35:36 +01:00 committed by GitHub
parent 66dda7c762
commit 9ce914cc89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}); });