From 17b1969255713e240cabf178869cb3363b25c09a Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Thu, 23 Oct 2025 13:56:14 +0000 Subject: [PATCH] Ensure site address is always a string for editing Update `sites.tsx` to default `site.address` to an empty string if null or undefined when editing a site. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/HdlP8Fl --- .replit | 4 ---- client/src/pages/sites.tsx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.replit b/.replit index 45eebf7..75d108a 100644 --- a/.replit +++ b/.replit @@ -19,10 +19,6 @@ externalPort = 80 localPort = 33035 externalPort = 3001 -[[ports]] -localPort = 33963 -externalPort = 6000 - [[ports]] localPort = 41295 externalPort = 5173 diff --git a/client/src/pages/sites.tsx b/client/src/pages/sites.tsx index ff5972c..4f0985a 100644 --- a/client/src/pages/sites.tsx +++ b/client/src/pages/sites.tsx @@ -219,7 +219,7 @@ export default function Sites() { setEditingSite(site); editForm.reset({ name: site.name, - address: site.address, + address: site.address || "", latitude: site.latitude || "", longitude: site.longitude || "", customerId: site.customerId ?? undefined,