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])
|
||||
|
||||
if (!domain) return null
|
||||
const target = domain
|
||||
|
||||
async function submit() {
|
||||
setSubmitting(true)
|
||||
setError('')
|
||||
try {
|
||||
const result = await applyMailDns(domain.id, {
|
||||
const result = await applyMailDns(target.id, {
|
||||
dnsProvider,
|
||||
ed25519Key,
|
||||
rsaKey,
|
||||
|
||||
Reference in New Issue
Block a user