@rjsf/core 5.23.1 → 5.23.2

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.
package/dist/index.js CHANGED
@@ -960,7 +960,7 @@ var AnyOfField = class extends import_react2.Component {
960
960
  const newOption = intOption >= 0 ? retrievedOptions[intOption] : void 0;
961
961
  const oldOption = selectedOption >= 0 ? retrievedOptions[selectedOption] : void 0;
962
962
  let newFormData = schemaUtils.sanitizeDataForNewSchema(newOption, oldOption, formData);
963
- if (newFormData && newOption) {
963
+ if (newOption) {
964
964
  newFormData = schemaUtils.getDefaultFormState(newOption, newFormData, "excludeObjectChildren");
965
965
  }
966
966
  this.setState({ selectedOption: intOption }, () => {