@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/core.umd.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/lib/components/fields/MultiSchemaField.js +1 -1
- package/lib/components/fields/MultiSchemaField.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/src/components/fields/MultiSchemaField.tsx +1 -1
package/dist/core.umd.js
CHANGED
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
const newOption = intOption >= 0 ? retrievedOptions[intOption] : void 0;
|
|
895
895
|
const oldOption = selectedOption >= 0 ? retrievedOptions[selectedOption] : void 0;
|
|
896
896
|
let newFormData = schemaUtils.sanitizeDataForNewSchema(newOption, oldOption, formData);
|
|
897
|
-
if (
|
|
897
|
+
if (newOption) {
|
|
898
898
|
newFormData = schemaUtils.getDefaultFormState(newOption, newFormData, "excludeObjectChildren");
|
|
899
899
|
}
|
|
900
900
|
this.setState({ selectedOption: intOption }, () => {
|
package/dist/index.esm.js
CHANGED
|
@@ -962,7 +962,7 @@ var AnyOfField = class extends Component2 {
|
|
|
962
962
|
const newOption = intOption >= 0 ? retrievedOptions[intOption] : void 0;
|
|
963
963
|
const oldOption = selectedOption >= 0 ? retrievedOptions[selectedOption] : void 0;
|
|
964
964
|
let newFormData = schemaUtils.sanitizeDataForNewSchema(newOption, oldOption, formData);
|
|
965
|
-
if (
|
|
965
|
+
if (newOption) {
|
|
966
966
|
newFormData = schemaUtils.getDefaultFormState(newOption, newFormData, "excludeObjectChildren");
|
|
967
967
|
}
|
|
968
968
|
this.setState({ selectedOption: intOption }, () => {
|