Resolve "Assign Doctor Page Display"
The Assign Doctor page has been updated to display all doctors registered for the currently active medical camp instead of showing a limited or incorrect subset of doctors.
This ensures consistency with the Admin dashboard and provides accurate data during patient-to-doctor assignment.
Show only camp-registered doctors
Ensure all registered doctors are visible
Remove incorrect client-side data limiting
Maintain existing UI and backend behavior
Previously, the Assign Doctor page:
Displayed only 4 doctors
Did not reflect the actual number of registered doctors for the camp
Caused confusion during patient assignment
Meanwhile, the Admin dashboard correctly displayed all registered doctors.
Replaced the doctor data source with:
getRegisteredDoctors()
Removed any client-side logic that:
Limited the number of displayed doctors
Applied incorrect filtering
Used partial or stale state
Ensured the full API response is stored and rendered.
Updated data-fetching logic in the Assign Doctor page
No UI or styling changes
No backend changes
No routing or component structure changes
🧪 Result
Improves admin workflow
Prevents incorrect doctor assignment

