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(property setup): original property being mutated if the value is an object #534

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

dbanksdesign
Copy link
Member

@dbanksdesign dbanksdesign commented Feb 3, 2021

Issue #, if available:

Description of changes: In propertySetup we were using lodash's clone method which only performs a shallow clone of the object, so if a value was an object as well, the pristine original value was being mutated as well. This fixes that behavior.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@chazzmoney
Copy link
Collaborator

LGTM! :shipit:

@chazzmoney chazzmoney merged commit 0b13ae2 into 3.0 Feb 4, 2021
@dbanksdesign dbanksdesign deleted the infinite-loop-bug branch March 12, 2021 22:13
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