Closed sebastian closed 3 years ago
Offending line:
<%= if @metadata["group_name"], do: link(@metadata["group_name"], to: admin_group_path(@socket, :edit, @metadata["group_id"])) %>
Any additional context? Could this be related to LDAP? Maybe you have stored corrupt data while testing an incomplete feature?
Prior to seeing this error I had deleted a lot of groups. I was about to disable users, but wanted to check if they had been active recently first.
So deleting groups might have been the cause triggering the error.
So deleting groups might have been the cause triggering the error.
Makes sense. We retain old data in the audit and the database lookups could return nil
at a later point. We can guard against this by checking if @metadata["group_id"]
also exists before rendering the link.