From 029eaf4c618e39b85f92c070f3af6ea0d7bc4cba Mon Sep 17 00:00:00 2001
From: alphaeusmote <41258468-alphaeusmote@users.noreply.replit.com>
Date: Thu, 10 Apr 2025 02:44:47 +0000
Subject: [PATCH] Improve DNS record page display logic
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/2a9d1f49-af02-4396-875f-c593ad32c8af.jpg
---
client/src/pages/dns-records.tsx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/client/src/pages/dns-records.tsx b/client/src/pages/dns-records.tsx
index 3942dfa..d8bd8f3 100644
--- a/client/src/pages/dns-records.tsx
+++ b/client/src/pages/dns-records.tsx
@@ -163,6 +163,9 @@ export default function DnsRecordsPage() {
domainId,
};
+ // For debugging
+ console.log("Adding DNS record:", recordData);
+
const res = await apiRequest("POST", "/api/dns-records", recordData);
return await res.json();
},
@@ -455,7 +458,7 @@ export default function DnsRecordsPage() {
Add DNS Record
- Add a new DNS record to {domain?.name || 'your domain'}.
+ Add a new DNS record to {domain?.name ? domain.name : 'your domain'}.
@@ -660,7 +663,7 @@ export default function DnsRecordsPage() {
Edit DNS Record
- Update the DNS record for {domain?.name || 'your domain'}.
+ Update the DNS record for {domain?.name ? domain.name : 'your domain'}.