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 updateOptions #59

Merged
merged 2 commits into from
Apr 27, 2021
Merged

Fix updateOptions #59

merged 2 commits into from
Apr 27, 2021

Conversation

robertlyall
Copy link
Contributor

Due to the argument name being the same as the outer options const, the following line did not correctly update the options hash.

options = { ...options, ...options };

This PR resolves that issue by renaming the argument and using Object.assign.

@antonmedv antonmedv merged commit b037e29 into antonmedv:master Apr 27, 2021
@robertlyall robertlyall deleted the fix-update-options branch April 27, 2021 15:51
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