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

When creating storage value, do not modify current attribute value. #606

Merged
merged 5 commits into from
Nov 7, 2019
Merged

When creating storage value, do not modify current attribute value. #606

merged 5 commits into from
Nov 7, 2019

Conversation

Pavel910
Copy link
Collaborator

@Pavel910 Pavel910 commented Nov 7, 2019

Related Issue

When Page Editor saves page content, it returns images with IDs instead of data objects.

Your solution

Make a deep clone of the current attribute values before applying modifiers that create the storage value, as we don't want to modify the attribute value itself.

How Has This Been Tested?

Manually.

@Pavel910 Pavel910 changed the base branch from master to feat/forms November 7, 2019 20:08
@Pavel910 Pavel910 changed the base branch from feat/forms to master November 7, 2019 20:08
Copy link
Member

@adrians5j adrians5j left a comment

Choose a reason for hiding this comment

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

Very nice 👍

@Pavel910 Pavel910 merged commit 9ec34e5 into webiny:master Nov 7, 2019
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