(file)
| 22 | const currentUrl = window.location.pathname; |
| 23 | useEffect(() => { |
| 24 | const fetchData = async (file) => { |
| 25 | try { |
| 26 | const response = await fetch(file); |
| 27 | const data = await response.json(); |
| 28 | return data; |
| 29 | } catch (error) { |
| 30 | console.error('Error fetching data:', error); |
| 31 | return []; |
| 32 | } |
| 33 | }; |
| 34 | |
| 35 | const combineData = async () => { |
| 36 | setLoadingProfiles(true); |