Skip to content

Commit

Permalink
fix(empty-options): Prevent empty options being added
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Apr 27, 2016
1 parent 031126f commit 5785712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class TypeProcessor {
_embedOptions(target, options, availableOptions) {
_.forEach(availableOptions, (availableOption) => {
var n = availableOption.name;
if (_.hasIn(options, n)) {
if (_.hasIn(options, n) && options[n]) {
target[n] = options[n];
} else if (_.hasIn(availableOption, 'defaultValue')) {
target[n] = availableOption.defaultValue;
Expand Down

0 comments on commit 5785712

Please sign in to comment.