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