Changeset 9af201e for frontend/src/pages/departments
- Timestamp:
- 09/04/26 19:08:08 (3 weeks ago)
- Branches:
- master
- Children:
- cdcff72
- Parents:
- e1f74f6
- Location:
- frontend/src/pages/departments
- Files:
-
- 2 edited
-
DepartmentDetail.js (modified) (2 diffs)
-
DoctorsByDepartment.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/pages/departments/DepartmentDetail.js
re1f74f6 r9af201e 19 19 20 20 useEffect(() => { 21 fetchDepartmentAndDoctors(); 22 }, [departmentId]); 23 24 const fetchDepartmentAndDoctors = async () => { 21 const fetchDepartmentAndDoctors = async () => { 25 22 try { 26 23 setLoading(true); … … 39 36 setLoading(false); 40 37 } 41 }; 38 }; 39 40 fetchDepartmentAndDoctors(); 41 }, [departmentId]); 42 42 43 43 if (loading) return <Loading />; -
frontend/src/pages/departments/DoctorsByDepartment.js
re1f74f6 r9af201e 19 19 20 20 useEffect(() => { 21 fetchDepartmentAndDoctors(); 22 }, [departmentId]); 23 24 const fetchDepartmentAndDoctors = async () => { 21 const fetchDepartmentAndDoctors = async () => { 25 22 try { 26 23 setLoading(true); … … 39 36 setLoading(false); 40 37 } 41 }; 38 }; 39 40 fetchDepartmentAndDoctors(); 41 }, [departmentId]); 42 42 43 43 if (loading) return <Loading />;
Note:
See TracChangeset
for help on using the changeset viewer.
