Skip to content

Commit

Permalink
fix: disable save on card error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Sep 20, 2023
1 parent 73cccf2 commit 50d3b9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/EditHomepage/EditHomepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ const getHasErrors = (errors) => {

const hasHighlightErrors = getHasError(errors.highlights)
const hasDropdownElemErrors = getHasError(errors.dropdownElems)
const hasTextcardCardErrors = getHasError(errors.textcards)
const hasTextcardCardErrors = _.some(errors.textcards, (section) =>
getHasError(section)
)

return (
hasSectionErrors ||
Expand Down

0 comments on commit 50d3b9b

Please sign in to comment.