Changeset c68150f for reactapp/src/Pages/University.js
- Timestamp:
- 10/27/22 17:35:03 (21 months ago)
- Branches:
- main
- Children:
- 3b6962d
- Parents:
- 8d83180
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Pages/University.js
r8d83180 rc68150f 18 18 let params = useParams(); 19 19 const [loaded, setLoaded] = useState(false); 20 const [faculties, setFaculties] = useState( false);20 const [faculties, setFaculties] = useState(null); 21 21 const [fetchError, setFetchError] = useState(false); 22 22 … … 39 39 }, [params.universityId]); 40 40 41 return loaded ? (41 return loaded && !fetchError && faculties.length !== 0 ? ( 42 42 <> 43 43 <CurrentPageNav> … … 74 74 {faculty.facultyName} 75 75 </a> 76 <EntityParam >76 <EntityParam right="30px"> 77 77 {totalSections}{" "} 78 78 {totalSections !== 1 ? ( … … 103 103 </div> 104 104 </> 105 ) : !fetchError ? (105 ) : !fetchError && !loaded ? ( 106 106 <div> 107 107 <p style={{ marginTop: "140px" }}>се вчитува...</p>
Note:
See TracChangeset
for help on using the changeset viewer.