Skip to content

Commit

Permalink
fixed domain update
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Nov 12, 2024
1 parent cd0e1f3 commit ef03985
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function EditDialog(props: {
open={props.open}
defaultValues={{
addWww: props.type === 'create',
domain: props.type === 'update' ? props.defaultDomain : undefined,
domain: props.type === 'update' ? props.defaultDomain.replace(/^https:\/\//, "") : undefined,
handlerPath: props.type === 'update' ? props.defaultHandlerPath : "/handler",
}}
onOpenChange={props.onOpenChange}
Expand Down Expand Up @@ -93,7 +93,7 @@ function EditDialog(props: {
render={(form) => (
<>
<Alert>
Please ensure you own or have control over this domain. Note that each subdomain (e.g. blog.example.com, app.example.com) is treated as a distinct domain.
Please ensure you own or have control over this domain. Also note that each subdomain (e.g. blog.example.com, app.example.com) is treated as a distinct domain.
</Alert>
<InputField
label="Domain"
Expand Down

0 comments on commit ef03985

Please sign in to comment.