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

pull/17304/head
Claire 2022-01-16 20:57:37 +01:00 committed by GitHub
parent 462bc65112
commit 081e4426f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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