File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 3
3
import React , { useState } from 'react' ;
4
4
import { Input } from 'reactstrap' ;
5
5
import {
6
+ excludeKeys ,
6
7
generateElementComponentsFromSchemas ,
7
8
generateCategoryHash ,
8
9
} from '../utils' ;
@@ -75,14 +76,15 @@ function getInnerCardComponent({
75
76
const [ elementId ] = useState ( getRandomId ) ;
76
77
const newDataProps = { } ;
77
78
const newUiProps = { } ;
78
- const allFormInputs = Object . assign (
79
- {
80
- ... defaultFormInputs ,
81
- } ,
82
- {
83
- ... ( mods && mods . customFormInputs ) ,
84
- } ,
79
+ const allFormInputs = excludeKeys (
80
+ Object . assign (
81
+ { } ,
82
+ defaultFormInputs ,
83
+ ( mods && mods . customFormInputs ) || { } ,
84
+ ) ,
85
+ mods && mods . deactivatedFormInputs ,
85
86
) ;
87
+
86
88
// parse components into data and ui relevant pieces
87
89
Object . keys ( parameters ) . forEach ( ( propName ) => {
88
90
if ( propName . startsWith ( 'ui:*' ) ) {
You can’t perform that action at this time.
0 commit comments