File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
src/Pages/GlobalConfigurations/BuildInfra Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,16 @@ const BuildInfraProfileDescriptionField: FunctionComponent<BuildInfraProfileMeta
26
26
error,
27
27
} ) => {
28
28
const handleChange = ( e : FormEvent < HTMLTextAreaElement > ) => {
29
- handleProfileInputChange ?.( {
30
- action : BuildInfraMetaConfigTypes . DESCRIPTION ,
31
- data : { value : e . currentTarget . value } ,
32
- } )
29
+ if ( handleProfileInputChange ) {
30
+ handleProfileInputChange ( {
31
+ action : BuildInfraMetaConfigTypes . DESCRIPTION ,
32
+ data : { value : e . currentTarget . value } ,
33
+ } )
33
34
34
- onChange ?.( e )
35
+ return
36
+ }
37
+
38
+ onChange ( e )
35
39
}
36
40
37
41
return (
Original file line number Diff line number Diff line change @@ -26,12 +26,15 @@ const BuildInfraProfileNameField: FunctionComponent<BuildInfraProfileMetaFieldPr
26
26
error,
27
27
} ) => {
28
28
const handleChange = ( e : FormEvent < HTMLInputElement > ) => {
29
- handleProfileInputChange ?.( {
30
- action : BuildInfraMetaConfigTypes . NAME ,
31
- data : { value : e . currentTarget . value } ,
32
- } )
29
+ if ( handleProfileInputChange ) {
30
+ handleProfileInputChange ( {
31
+ action : BuildInfraMetaConfigTypes . NAME ,
32
+ data : { value : e . currentTarget . value } ,
33
+ } )
34
+ return
35
+ }
33
36
34
- onChange ?. ( e )
37
+ onChange ( e )
35
38
}
36
39
37
40
return (
You can’t perform that action at this time.
0 commit comments