This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(steps-details): Required object type's parameters are lost
Currently, having a step with a required object type parameter gets removed from the Code Editor upon opening the step's details panel. This issue occurs because we're instructing `uniforms` that we have a required object property without a default or initial value. Once `uniforms` tries to build the initial form value, it returns an empty object. [This happens here](https://github.com/vazco/uniforms/blob/ecb1785468bfe2508399a48e13bdb921549ab91a/packages/uniforms-bridge-json-schema/src/JSONSchemaBridge.ts#L267-L276). Considering that there are no current plans to support object property definitions, the workaround is to provide a default value alongside the schema to feed the initial value of object properties. Fixes: #1603
- Loading branch information