From a63463bcf9f4b85842f6d2fe56bc7fa0829d1c81 Mon Sep 17 00:00:00 2001 From: Drina_Rincon Date: Mon, 11 Apr 2022 15:56:30 -0300 Subject: [PATCH 1/2] Validar que hay bgImage --- src/components/Text/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Text/Text.js b/src/components/Text/Text.js index 27fb28df..2caddb3e 100644 --- a/src/components/Text/Text.js +++ b/src/components/Text/Text.js @@ -5,7 +5,7 @@ import "./Text.scss" export default function Text({ data }) { const title = data?.title const description = data?.text - const bgImage = data?.backgroundImage[0].url + const bgImage = data?.backgroundImage[0]?.url return (
From 839dd413d9054485eba739b770dd7e361b95aae7 Mon Sep 17 00:00:00 2001 From: Drina_Rincon Date: Mon, 11 Apr 2022 16:04:10 -0300 Subject: [PATCH 2/2] validar bgImage --- src/components/Text/Text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Text/Text.js b/src/components/Text/Text.js index 2caddb3e..fa0ea5a3 100644 --- a/src/components/Text/Text.js +++ b/src/components/Text/Text.js @@ -5,7 +5,7 @@ import "./Text.scss" export default function Text({ data }) { const title = data?.title const description = data?.text - const bgImage = data?.backgroundImage[0]?.url + const bgImage = data?.backgroundImage?.url return (