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 {
32
32
import {
33
33
ControlWithDetailProps ,
34
34
findUISchema ,
35
+ generateDefaultUISchema ,
35
36
GroupLayout ,
36
37
isObjectControl ,
37
38
RankedTester ,
38
39
rankWith ,
39
40
setReadonly ,
40
41
UISchemaElement ,
41
42
} from '@jsonforms/core' ;
43
+ import { cloneDeep } from 'lodash' ;
42
44
43
45
@Component ( {
44
46
selector : 'ObjectRenderer' ,
@@ -65,7 +67,14 @@ export class ObjectControlRenderer extends JsonFormsControlWithDetail {
65
67
props . schema ,
66
68
props . uischema . scope ,
67
69
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
+ } ,
69
78
props . uischema ,
70
79
props . rootSchema
71
80
) ;
You can’t perform that action at this time.
0 commit comments