Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: proper intialization of section errors #268

Conversation

alexanderleegs
Copy link
Contributor

This PR fixes the bug raised in issue #267. The reason for this issue was our assumption that a page had either a dropdown or highlights - given the relaxation of compulsory fields in the hero section, it became possible for a page to have neither, in which case our error initialization was not performed correctly. This PR fixes that issue by checking for this case.

@alexanderleegs alexanderleegs linked an issue Nov 27, 2020 that may be closed by this pull request
Copy link
Contributor

@kwajiehao kwajiehao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alexanderleegs alexanderleegs merged commit a5887c1 into staging Nov 30, 2020
@alexanderleegs alexanderleegs deleted the fix/editHomepage-intialization-for-pages-with-no-dropdown-and-highlights branch December 9, 2020 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EditHomepage doesn't work when page has no sections
2 participants