File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/angular-material/src/other Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,15 @@ import {
3232import {
3333 ControlWithDetailProps ,
3434 findUISchema ,
35+ generateDefaultUISchema ,
3536 GroupLayout ,
3637 isObjectControl ,
3738 RankedTester ,
3839 rankWith ,
3940 setReadonly ,
4041 UISchemaElement ,
4142} from '@jsonforms/core' ;
43+ import { cloneDeep } from 'lodash' ;
4244
4345@Component ( {
4446 selector : 'ObjectRenderer' ,
@@ -65,7 +67,14 @@ export class ObjectControlRenderer extends JsonFormsControlWithDetail {
6567 props . schema ,
6668 props . uischema . scope ,
6769 props . path ,
68- 'Group' ,
70+ ( ) => {
71+ const newSchema = cloneDeep ( props . schema ) ;
72+ // delete unsupported operators
73+ delete newSchema . oneOf ;
74+ delete newSchema . anyOf ;
75+ delete newSchema . allOf ;
76+ return generateDefaultUISchema ( newSchema , 'Group' ) ;
77+ } ,
6978 props . uischema ,
7079 props . rootSchema
7180 ) ;
You can’t perform that action at this time.
0 commit comments