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: update config settings and footer settings separately #81

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

gweiying
Copy link
Contributor

@gweiying gweiying commented Nov 24, 2020

This PR modifies the post update method on the Settings class to update each component (footerSettings, configSettings) separately, only if the relevant component is defined in the received payload.

This is because on the Edit Contact-Us page (link), we only update a key-value pair stored in footerSettings, so there is no need to store and resend configSettings on the post update.

The implementation is a currently rough implementation for the frontend PR, and will be cleaned up, see (frontend TODOs list link)

@gweiying gweiying force-pushed the feat/contact-us-page branch from 9bf2a22 to da7dbf1 Compare December 4, 2020 08:59
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

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.

2 participants