From 3db8b8bc9a8e0703c7d0c281b8c04874cfbad886 Mon Sep 17 00:00:00 2001 From: benjacanas Date: Tue, 22 Mar 2022 17:09:45 -0300 Subject: [PATCH 1/2] fix nav null --- src/components/NavBar/Navbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NavBar/Navbar.js b/src/components/NavBar/Navbar.js index 61c1aa15..8cbe8a48 100644 --- a/src/components/NavBar/Navbar.js +++ b/src/components/NavBar/Navbar.js @@ -37,7 +37,7 @@ const NavBar = () => { homeComponents={navbarData.allStrapiHome?.nodes[0].body} landingComponents={navbarData.allStrapiLandingPage?.nodes} navbarItems={ - navbarData.allStrapiLayout?.nodes[0].navbar.navbarItem + navbarData.allStrapiLayout?.nodes[0].navbar?.navbarItem } duration={300} /> From 6f9d7c94349edcfd3ab357f0524352294c1c1020 Mon Sep 17 00:00:00 2001 From: benjacanas Date: Tue, 22 Mar 2022 17:24:32 -0300 Subject: [PATCH 2/2] fix null error --- src/components/Footer/ContactData/contactData.js | 4 ++-- src/components/Footer/Navegation/navegation.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Footer/ContactData/contactData.js b/src/components/Footer/ContactData/contactData.js index 0f22edfd..f74d8004 100644 --- a/src/components/Footer/ContactData/contactData.js +++ b/src/components/Footer/ContactData/contactData.js @@ -19,11 +19,11 @@ export default function ContactData() { return ( <>
-

{dataFooter.contact.title}

+

{dataFooter.contact?.title}

{contact}

- {dataFooter.internalLink.name} + {dataFooter.internalLink?.name}
diff --git a/src/components/Footer/Navegation/navegation.js b/src/components/Footer/Navegation/navegation.js index 59795373..fe1eefc0 100644 --- a/src/components/Footer/Navegation/navegation.js +++ b/src/components/Footer/Navegation/navegation.js @@ -9,7 +9,7 @@ export default function Navegation() { const navegationItems = dataFooter?.navegation?.pageLink; - const navegationParts = navegationItems.map((section) => + const navegationParts = navegationItems?.map((section) =>
  • {section.name}