From 4905096099b9cdbb980bb0c904aede2b7b8ada85 Mon Sep 17 00:00:00 2001 From: Harish Date: Thu, 19 Oct 2023 16:57:33 +0800 Subject: [PATCH] fix: errors indexes (#1610) --- src/layouts/EditHomepage/EditHomepage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layouts/EditHomepage/EditHomepage.jsx b/src/layouts/EditHomepage/EditHomepage.jsx index 7d468e501..3690630d8 100644 --- a/src/layouts/EditHomepage/EditHomepage.jsx +++ b/src/layouts/EditHomepage/EditHomepage.jsx @@ -403,6 +403,8 @@ const EditHomepage = ({ match }) => { textCardItemErrors.push( _.map(cards, () => getErrorValues(TEXTCARDS_ITEM_SECTION)) ) + } else { + textCardItemErrors.push([]) } if (section.infocols) { @@ -417,7 +419,6 @@ const EditHomepage = ({ match }) => { ) } else { // populate for nested components - textCardItemErrors.push([]) infocolInfoboxErrors.push([]) }