mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 18:36:37 +00:00
♻️ pass default value to domain picker
This commit is contained in:
@@ -226,7 +226,8 @@ export default function GeneralForm() {
|
||||
niceId: data.niceId,
|
||||
subdomain: data.subdomain,
|
||||
fullDomain: updated.fullDomain,
|
||||
proxyPort: data.proxyPort
|
||||
proxyPort: data.proxyPort,
|
||||
domainId: data.domainId
|
||||
// ...(!resource.http && {
|
||||
// enableProxy: data.enableProxy
|
||||
// })
|
||||
@@ -489,8 +490,14 @@ export default function GeneralForm() {
|
||||
<DomainPicker
|
||||
orgId={orgId as string}
|
||||
cols={1}
|
||||
defaultSubdomain={resource.subdomain}
|
||||
defaultDomainId={resource.domainId}
|
||||
defaultSubdomain={
|
||||
selectedDomain?.subdomain ??
|
||||
resource.subdomain
|
||||
}
|
||||
defaultDomainId={
|
||||
selectedDomain?.domainId ??
|
||||
resource.domainId
|
||||
}
|
||||
onDomainChange={(res) => {
|
||||
const selected = {
|
||||
domainId: res.domainId,
|
||||
|
||||
Reference in New Issue
Block a user