diff --git a/src/layouts/EditHomepage/EditHomepage.jsx b/src/layouts/EditHomepage/EditHomepage.jsx index 611f94c481..9baec16698 100644 --- a/src/layouts/EditHomepage/EditHomepage.jsx +++ b/src/layouts/EditHomepage/EditHomepage.jsx @@ -55,7 +55,7 @@ import { RESOURCES_SECTION, } from "./constants" import { HomepagePreview } from "./HomepagePreview" -import { getDefaultValues, getHasErrorFromHomepageState } from "./utils" +import { getDefaultValues, getErrorsFromHomepageState } from "./utils" /* eslint-disable react/no-array-index-key */ @@ -148,6 +148,7 @@ const EditHomepage = ({ match }) => { setDisplayHighlights(displayHighlights) } const heroSection = frontMatter.sections.filter((section) => !!section.hero) + const errorMessages = getErrorsFromHomepageState(homepageState) const errorToast = useErrorToast() @@ -1078,8 +1079,18 @@ const EditHomepage = ({ match }) => { />