Skip to content
Snippets Groups Projects
Unverified Commit 081e4426 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix admin interface crash when displaying deleted user (#17301)

parent 462bc651
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
module Admin::DashboardHelper
def relevant_account_ip(account, ip_query)
ips = account.user.ips.to_a
ips = account.user.present? ? account.user.ips.to_a : []
matched_ip = begin
ip_query_addr = IPAddr.new(ip_query)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment