diff --git a/admin-portal-frontend/src/app/all-page/page.tsx b/admin-portal-frontend/src/app/all-page/page.tsx index 6d20b69..a38765e 100644 --- a/admin-portal-frontend/src/app/all-page/page.tsx +++ b/admin-portal-frontend/src/app/all-page/page.tsx @@ -16,14 +16,13 @@ export default function CategoriesPage() { const fetchData = async () => { try { const fetchedCategories = (await getAllCategories()) as Category[]; - console.log(fetchedCategories); setCategories(fetchedCategories as never); } catch (error) { - console.error("Error fetching categories:", error); + console.log("Fetch categories failed."); } }; - fetchData(); + void fetchData(); }, [categories]); const onDeletePage = async (categoryId: string, title: string) => { @@ -96,7 +95,7 @@ export default function CategoriesPage() { />