You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When logged in as "Doctor Dev," attempting to add a new patient from the "View Facility" section in a facility that is not the user's home facility causes an infinite rendering loop. This results in a redirection to the "not-found" page.
To Reproduce
Steps to reproduce the behavior:
Go to /facility
Click on View Facility
In any facility that is not the home facility, click on Add Details of Patient
Observe the error (infinite rendering and redirection to "not-found" page)
Expected behavior
The system should display a notification with an appropriate message explaining the restriction and redirect the user back to the home page instead of triggering an error.
In this case, expected behavior should be different:
PatientRegisterAuth in PatientRegister.tsx determines the permissions of the page, so for roles like Doctor/Nurse etc, the button should only be visible accordingly.
Describe the bug
When logged in as "Doctor Dev," attempting to add a new patient from the "View Facility" section in a facility that is not the user's home facility causes an infinite rendering loop. This results in a redirection to the "not-found" page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The system should display a notification with an appropriate message explaining the restriction and redirect the user back to the home page instead of triggering an error.
Video
Watch Video
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: