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 () => {
setLoading(true);
try {
const response = await fetch('/api/errpackages');
const response = await fetch('/api/errored');
const data: PackageData[] = await response.json();
setErrPackages(data);
} catch (error) {
console.error("Error fetching errpackages:", error);
console.error("Error fetching errored:", error);
setErrPackages([]);
} finally {
setLoading(false);