Skip to content

Commit dd7e38b

Browse files
committed
Fix issue where an attribute named length would break the use default value checkbox
1 parent ce69707 commit dd7e38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/utils/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ define([
231231
separator = separator || '-';
232232

233233
_.each(data, function (value, key) {
234-
if (_.isObject(value) && !value.length) {
234+
if (_.isObject(value) && !Array.isArray(value)) {
235235
this.filterFormData(value, suffix, separator);
236236
} else if (_.isString(key) && ~key.indexOf(suffix)) {
237237
data[key.split(separator)[0]] = value;

0 commit comments

Comments
 (0)