diff --git a/frontend/src/app/categories/page.tsx b/frontend/src/app/categories/page.tsx index f0ef69a..e567108 100644 --- a/frontend/src/app/categories/page.tsx +++ b/frontend/src/app/categories/page.tsx @@ -2,7 +2,20 @@ import { getCategories } from "@/lib/api"; import Link from "next/link"; export default async function CategoriesPage() { - const { items: categories } = await getCategories(); + let categories; + try { + const response = await getCategories(); + categories = response.items; + } catch { + return ( +
+ Unable to load categories. Please try again later. +
++ Unable to load patterns. Please try again later. +
+