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

This commit is contained in:
Claire 2022-05-10 11:09:29 +02:00
parent 898fe2fa8e
commit 8fa6887efd

View File

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