Skip to content

Commit

Permalink
fix(ui): don't overwrite default options
Browse files Browse the repository at this point in the history
Object.assign writes values from args[1+] into args[0] so defaultOptions were being overridden
  • Loading branch information
vikaspotluri123 authored and acburdine committed Jul 13, 2018
1 parent e9ec39a commit 1357cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UI {
* @param {Object} options
*/
constructor(options) {
this.options = Object.assign(defaultOptions, options);
this.options = Object.assign({}, defaultOptions, options);

// Set up i/o streams
this.stdin = this.options.stdin;
Expand Down

0 comments on commit 1357cc6

Please sign in to comment.