Moving logical OR assignment to transformSchemaToProps
Signed-off-by: Johnn Mis <v-jmis@expediagroup.com>
This commit is contained in:
@@ -63,6 +63,7 @@ function extractUiSchema(schema: JsonObject, uiSchema: JsonObject) {
|
||||
export function transformSchemaToProps(
|
||||
inputSchema: JsonObject,
|
||||
): { schema: FormProps<any>['schema']; uiSchema: FormProps<any>['uiSchema'] } {
|
||||
inputSchema.type = inputSchema.type || 'object';
|
||||
const schema = JSON.parse(JSON.stringify(inputSchema));
|
||||
delete schema.title; // Rendered separately
|
||||
const uiSchema = {};
|
||||
|
||||
Reference in New Issue
Block a user