Fix warning an account outside of a report closing all reports for that account (#18387)

* Fix warning an account outside of a report closing all reports for that account

* Make it clear what actions solve other reports

* Revert "Make it clear what actions solve other reports"

This reverts commit ad006de821.
pull/18480/head
Claire 2022-05-23 20:38:29 +02:00 committed by GitHub
parent a9b64b24d6
commit e5997a1956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ class Admin::AccountAction
def reports
@reports ||= begin
if type == 'none' && with_report?
[report]
if type == 'none'
with_report? ? [report] : []
else
Report.where(target_account: target_account).unresolved
end