sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 11 forks source link

Admin User Page Should Render User's Org And Associated Users #321

Open pnilan opened 9 months ago

pnilan commented 9 months ago

Issue Title

Admin User Page Should Render User's Org And Associated Users

Expected Behavior

After an admin user logs in and is redirected to the general dashboard page, when the user navigates to the "Users" page the user's organization should be shown and all associated users should be listed in table.

Actual Behavior

After an admin user logs in and is redirected to the general dashboard page, upon navigating to the "User" page, the user's organization is not shown and no users are shown in the user page. Upon refresh, the select user's org is shown and the users are correctly rendered.

Effects are similar, but include issues with the dropdown/select.

Steps to Reproduce

  1. Log in with administrative user or super user.
  2. Navigate to "Users" page
  3. If error occurs, no org/users are rendered. (Or if superuser AMR will be selected w/o any users listed)
  4. Refresh browser
  5. Correct org is selected and users are correctly listed in table.

Notes

I believe this began occurring after most recent commit was merged.