util-helpers 4.21.2 → 4.21.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1981,11 +1981,14 @@
1981
1981
  if (childrenField && isArray(newItem[childrenField]) && newItem[childrenField].length > 0) {
1982
1982
  newItem[childrenField] = recusion(newItem[childrenField].slice());
1983
1983
  }
1984
- objectKeys(fieldNames).forEach(function (newKey) {
1984
+ var newKeys = objectKeys(fieldNames);
1985
+ newKeys.forEach(function (newKey) {
1985
1986
  var oldKey = fieldNames[newKey];
1986
1987
  if (oldKey in newItem) {
1987
1988
  newItem[newKey] = newItem[oldKey];
1988
- delKeys.push(oldKey);
1989
+ if (newKeys.indexOf(oldKey) === -1) {
1990
+ delKeys.push(oldKey);
1991
+ }
1989
1992
  }
1990
1993
  });
1991
1994
  if (delKeys.length > 0) {
@@ -2223,9 +2226,9 @@
2223
2226
  return internalFindTreeSelect(tree, predicate, childrenField);
2224
2227
  }
2225
2228
 
2226
- var VERSION = "4.21.2";
2229
+ var VERSION = "4.21.3";
2227
2230
 
2228
- var version = "4.21.2";
2231
+ var version = "4.21.3";
2229
2232
 
2230
2233
  exports.VERSION = VERSION;
2231
2234
  exports.ajax = ajax;