Fix Email DNS modal typecheck so Super Admin can build.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
3cbadb4001
commit
fde6a34e44
@@ -32,12 +32,13 @@ export function EmailDnsModal({ domain, onClose }: EmailDnsModalProps) {
|
|||||||
}, [domain])
|
}, [domain])
|
||||||
|
|
||||||
if (!domain) return null
|
if (!domain) return null
|
||||||
|
const target = domain
|
||||||
|
|
||||||
async function submit() {
|
async function submit() {
|
||||||
setSubmitting(true)
|
setSubmitting(true)
|
||||||
setError('')
|
setError('')
|
||||||
try {
|
try {
|
||||||
const result = await applyMailDns(domain.id, {
|
const result = await applyMailDns(target.id, {
|
||||||
dnsProvider,
|
dnsProvider,
|
||||||
ed25519Key,
|
ed25519Key,
|
||||||
rsaKey,
|
rsaKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user