Skip to content

Commit

Permalink
fix: errors indexes (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
harishv7 authored Oct 19, 2023
1 parent 4d351f4 commit 4905096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/EditHomepage/EditHomepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ const EditHomepage = ({ match }) => {
textCardItemErrors.push(
_.map(cards, () => getErrorValues(TEXTCARDS_ITEM_SECTION))
)
} else {
textCardItemErrors.push([])
}

if (section.infocols) {
Expand All @@ -417,7 +419,6 @@ const EditHomepage = ({ match }) => {
)
} else {
// populate for nested components
textCardItemErrors.push([])
infocolInfoboxErrors.push([])
}

Expand Down

0 comments on commit 4905096

Please sign in to comment.