Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pouya-eghbali committed Nov 11, 2019
1 parent 8c615bc commit b681886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Bugs Fixes
-------------------------

* **`disabled` in select options**: didn't work.
* merged aldeed/meteor-autoform/pull/1289

Features
-------------------------
Expand Down
3 changes: 3 additions & 0 deletions utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Utility = {
newDoc[key] = val;
}
} else if (_.isArray(val)) {
if (!keepEmptyStrings) {
val = val.filter(Boolean);
}
val = cleanNulls(val, true, keepEmptyStrings); // recurse into non-typed arrays
if (!_.isEmpty(val)) {
newDoc[key] = val;
Expand Down

0 comments on commit b681886

Please sign in to comment.