File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ export function getCardBody(
43
43
category : string ,
44
44
allFormInputs : { [ string ] : FormInput } ,
45
45
) {
46
- return allFormInputs [ category ] . cardBody ;
46
+ return (
47
+ ( allFormInputs [ category ] && allFormInputs [ category ] . cardBody ) ||
48
+ ( ( ) => null )
49
+ ) ;
47
50
}
48
51
export function categoryToNameMap (
49
52
category : string ,
@@ -833,7 +836,10 @@ export function getCardParameterInputComponentForType(
833
836
category : string ,
834
837
allFormInputs : { [ string ] : FormInput } ,
835
838
) {
836
- return allFormInputs [ category ] . modalBody || ( ( ) => null ) ;
839
+ return (
840
+ ( allFormInputs [ category ] && allFormInputs [ category ] . modalBody ) ||
841
+ ( ( ) => null )
842
+ ) ;
837
843
}
838
844
839
845
// takes in an array of Card Objects and updates both schemas
You can’t perform that action at this time.
0 commit comments