This commit is contained in:
ferreo 2024-07-30 20:37:42 +01:00
parent 6a7b9b3dc7
commit 63171686dd

View File

@ -103,11 +103,11 @@ const usePackageData = () => {
const fetchErrPackages = useCallback(async () => { const fetchErrPackages = useCallback(async () => {
setLoading(true); setLoading(true);
try { try {
const response = await fetch('/api/errpackages'); const response = await fetch('/api/errored');
const data: PackageData[] = await response.json(); const data: PackageData[] = await response.json();
setErrPackages(data); setErrPackages(data);
} catch (error) { } catch (error) {
console.error("Error fetching errpackages:", error); console.error("Error fetching errored:", error);
setErrPackages([]); setErrPackages([]);
} finally { } finally {
setLoading(false); setLoading(false);