Fix url
This commit is contained in:
parent
6a7b9b3dc7
commit
63171686dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user