From 832a59ea2a454e1fb8e8ffc8cb59fe29335a820c Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 25 Mar 2022 17:56:45 -0300 Subject: [PATCH] Fix case schema and field validations --- src/components/Footer/ContactData/contactData.js | 2 +- src/components/Footer/Navegation/navegation.js | 2 +- src/schema/caseSchema.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Footer/ContactData/contactData.js b/src/components/Footer/ContactData/contactData.js index 6cacfc02..2b78cd4e 100644 --- a/src/components/Footer/ContactData/contactData.js +++ b/src/components/Footer/ContactData/contactData.js @@ -19,7 +19,7 @@ export default function ContactData() { return ( <>
-
{dataFooter.contact.title}
+
{dataFooter?.contact?.title}

{contact}

diff --git a/src/components/Footer/Navegation/navegation.js b/src/components/Footer/Navegation/navegation.js index c56d5271..95e53717 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}
  • diff --git a/src/schema/caseSchema.js b/src/schema/caseSchema.js index 5e131031..12e52f93 100644 --- a/src/schema/caseSchema.js +++ b/src/schema/caseSchema.js @@ -29,6 +29,7 @@ type StrapiCase implements Node { quote: StrapiCaseQuote image: LocalFile strapiId: Int + subtitle: String } type StrapiCaseButton {