Skip to content

Commit

Permalink
Fix warning an account outside of a report closing all reports for th…
Browse files Browse the repository at this point in the history
…at account
  • Loading branch information
ClearlyClaire committed May 10, 2022
1 parent 898fe2f commit 8fa6887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/admin/account_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def status_ids

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
Expand Down

0 comments on commit 8fa6887

Please sign in to comment.