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.
Describe the bug
Unable to view StaffMember when StaffMember being viewed is an admin
To Reproduce
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.
https://github.com/codeforpdx/dwellingly-app/blob/83ecddfed4eec99ed29eca69d83ba6d4c19b12d6/app/javascript/components/src/views/EditStaff/index.jsx#L142-L150