()
| 40 | // Fetch projects on component mount |
| 41 | useEffect(() => { |
| 42 | const fetchData = async () => { |
| 43 | setLoading(true); // Set loading to true before fetching |
| 44 | await getGlobalProjects(); |
| 45 | setLoading(false); // Set loading to false after data is fetched |
| 46 | }; |
| 47 | fetchData(); |
| 48 | // eslint-disable-next-line |
| 49 | }, []); |
no test coverage detected