@rjsf/utils 5.12.0 → 5.12.1

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
@@ -593,7 +593,8 @@ function retrieveSchemaInternal(validator, schema, rootSchema, rawFormData, expa
593
593
  }
594
594
  if (ALL_OF_KEY in resolvedSchema) {
595
595
  if (expandAllBranches) {
596
- return [...resolvedSchema.allOf];
596
+ const { allOf, ...restOfSchema } = resolvedSchema;
597
+ return [...allOf, restOfSchema];
597
598
  }
598
599
  try {
599
600
  resolvedSchema = (0, import_json_schema_merge_allof.default)(resolvedSchema, {