Unable to view an AdminStaffMember
NickSchimek opened this issue · 0 comments
NickSchimek commented
Describe the bug
Unable to view StaffMember when StaffMember being viewed is an admin
To Reproduce
- Go to JoinStaff
- Click on StaffMember that is an admin
Expected behavior
I should see the staff member
The root cause of the issue is that Admins will not be assigned tenants, and so we do not send back a tenants list for an admin.
The code in TenantList should not be rendered when the staff member is an admin.
dwellingly-app/app/javascript/components/src/views/EditStaff/index.jsx
Lines 142 to 150 in 83ecddf