diff --git a/README.md b/README.md index a5f4f9c..a97c052 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ Bugs Fixes ------------------------- * **`disabled` in select options**: didn't work. +* merged aldeed/meteor-autoform/pull/1289 Features ------------------------- diff --git a/utility.js b/utility.js index c19e55f..a3cc80a 100644 --- a/utility.js +++ b/utility.js @@ -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;