Skip to content

Commit c389b9a

Browse files
committed
fix(core): Generate UI Schema with Type Null
Previously, the default UI schema generation function threw error when encountering data containing a null value. With this commit, a control with type null will be generated, that can be used in custom renderers. Closes #2207
1 parent da3321b commit c389b9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/generators/uischema.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ const generateUISchema = (
191191
/* falls through */
192192
case 'integer':
193193
/* falls through */
194+
case 'null':
195+
/* falls through */
194196
case 'boolean': {
195197
const controlObject: ControlElement = createControlElement(currentRef);
196198
schemaElements.push(controlObject);

0 commit comments

Comments
 (0)