File tree 1 file changed +4
-4
lines changed
web/src/pages/app/functions/mods/EditorPanel
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default function EditDomain(props: { children: any }) {
31
31
const { currentApp, showSuccess, setCurrentApp } = useGlobalStore ( ) ;
32
32
33
33
const { register, handleSubmit, reset } = useForm < { domain : string } > ( {
34
- defaultValues : { domain : currentApp ?. domain . customDomain || "" } ,
34
+ defaultValues : { domain : currentApp ?. domain ? .customDomain || "" } ,
35
35
} ) ;
36
36
37
37
const bindDomainMutation = useBindDomainMutation ( ) ;
@@ -43,7 +43,7 @@ export default function EditDomain(props: { children: any }) {
43
43
{ React . cloneElement ( children , {
44
44
onClick : ( event ?: any ) => {
45
45
event ?. preventDefault ( ) ;
46
- reset ( { domain : currentApp ?. domain . customDomain || "" } ) ;
46
+ reset ( { domain : currentApp ?. domain ? .customDomain || "" } ) ;
47
47
onOpen ( ) ;
48
48
} ,
49
49
} ) }
@@ -58,10 +58,10 @@ export default function EditDomain(props: { children: any }) {
58
58
< FormControl >
59
59
< FormLabel > CNAME</ FormLabel >
60
60
< InputGroup >
61
- < Input variant = "filled" value = { currentApp ?. domain . domain } readOnly />
61
+ < Input variant = "filled" value = { currentApp ?. domain ? .domain } readOnly />
62
62
< InputRightAddon
63
63
children = {
64
- < CopyText text = { currentApp ?. domain . domain } className = "cursor-pointer" />
64
+ < CopyText text = { currentApp ?. domain ? .domain } className = "cursor-pointer" />
65
65
}
66
66
/>
67
67
</ InputGroup >
You can’t perform that action at this time.
0 commit comments