From f9ed5b73d2005aec92684158944fd915e2756224 Mon Sep 17 00:00:00 2001 From: amirmoghi3 Date: Tue, 25 Feb 2025 17:49:08 +0330 Subject: [PATCH] fix --- src/components/Product/ProductRelated.jsx | 4 ++-- src/view/Landing/components/AboutUs.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Product/ProductRelated.jsx b/src/components/Product/ProductRelated.jsx index 6a6874d..41c29e0 100644 --- a/src/components/Product/ProductRelated.jsx +++ b/src/components/Product/ProductRelated.jsx @@ -58,8 +58,8 @@ const ProductRelated = ({ category, brand }) => { const fetchProducts = async () => { const { products_connection: { nodes } } = await graphql(gql, { - categoryId: brand.documentId ? "" : category.documentId, - brandId: brand.documentId ? brand.documentId : "", + categoryId: brand?.documentId ? "" : category?.documentId, + brandId: brand?.documentId ? brand?.documentId : "", locale: "en" }) diff --git a/src/view/Landing/components/AboutUs.jsx b/src/view/Landing/components/AboutUs.jsx index db103ca..7fb0182 100644 --- a/src/view/Landing/components/AboutUs.jsx +++ b/src/view/Landing/components/AboutUs.jsx @@ -14,7 +14,7 @@ const AboutUs = () => { -
+