Removing id collision fix

Signed-off-by: Johnn Mis <v-jmis@expediagroup.com>
This commit is contained in:
Johnn Mis
2021-03-08 09:45:18 -06:00
parent ad882c8cf8
commit b133533bfb
@@ -63,7 +63,6 @@ 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 = {};