react-hook-form 6.15.7 → 6.15.8

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.
@@ -1976,7 +1976,7 @@ var useFieldArray = function (_a) {
1976
1976
  ? getDefaultValues(fieldArrayDefaultValuesRef.current)
1977
1977
  : getDefaultValues(defaultValuesRef.current))));
1978
1978
  var _d = __read(React.useState(mapIds(memoizedDefaultValues.current, keyName)), 2), fields = _d[0], setFields = _d[1];
1979
- set(fieldArrayValuesRef.current, name, fields);
1979
+ set(fieldArrayValuesRef.current, name, compact(fields));
1980
1980
  var omitKey = function (fields) { return fields.map(function (_a) {
1981
1981
  if (_a === void 0) { _a = {}; }
1982
1982
  var _b = keyName, omitted = _a[_b], rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);