Ignore:
Timestamp:
09/04/26 19:08:08 (3 weeks ago)
Author:
MBK <marija.karapandzova@…>
Branches:
master
Children:
cdcff72
Parents:
e1f74f6
Message:

Fix frontend appearance

Location:
frontend/src/pages/departments
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/pages/departments/DepartmentDetail.js

    re1f74f6 r9af201e  
    1919
    2020  useEffect(() => {
    21     fetchDepartmentAndDoctors();
    22   }, [departmentId]);
    23 
    24   const fetchDepartmentAndDoctors = async () => {
     21    const fetchDepartmentAndDoctors = async () => {
    2522    try {
    2623      setLoading(true);
     
    3936      setLoading(false);
    4037    }
    41   };
     38    };
     39
     40    fetchDepartmentAndDoctors();
     41  }, [departmentId]);
    4242
    4343  if (loading) return <Loading />;
  • frontend/src/pages/departments/DoctorsByDepartment.js

    re1f74f6 r9af201e  
    1919
    2020  useEffect(() => {
    21     fetchDepartmentAndDoctors();
    22   }, [departmentId]);
    23 
    24   const fetchDepartmentAndDoctors = async () => {
     21    const fetchDepartmentAndDoctors = async () => {
    2522    try {
    2623      setLoading(true);
     
    3936      setLoading(false);
    4037    }
    41   };
     38    };
     39
     40    fetchDepartmentAndDoctors();
     41  }, [departmentId]);
    4242
    4343  if (loading) return <Loading />;
Note: See TracChangeset for help on using the changeset viewer.