@steroidsjs/core 2.2.67 → 2.2.68

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/reducers/form.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.67",
3
+ "version": "2.2.68",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
package/reducers/form.js CHANGED
@@ -35,7 +35,7 @@ function reducerItem(state, action) {
35
35
  }
36
36
  switch (action.type) {
37
37
  case form_1.FORM_INITIALIZE:
38
- return __assign(__assign({ errors: {}, isInvalid: false, isSubmitting: false }, state), { values: cloneDeep_1["default"](action.values || {}) || (state === null || state === void 0 ? void 0 : state.values), initialValues: action.values || (state === null || state === void 0 ? void 0 : state.values) || null });
38
+ return __assign(__assign({ errors: {}, isInvalid: false, isSubmitting: false }, state), { values: cloneDeep_1["default"](action.values) || (state === null || state === void 0 ? void 0 : state.values) || {}, initialValues: action.values || (state === null || state === void 0 ? void 0 : state.values) || null });
39
39
  case form_1.FORM_CHANGE:
40
40
  if (isObject_1["default"](action.nameOrObject)) {
41
41
  var newValues = __assign(__assign({}, state.values), action.nameOrObject);