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
This commit is contained in:
marco370 2025-10-23 13:56:14 +00:00
parent 5017532439
commit 17b1969255
2 changed files with 1 additions and 5 deletions

View File

@ -19,10 +19,6 @@ externalPort = 80
localPort = 33035
externalPort = 3001
[[ports]]
localPort = 33963
externalPort = 6000
[[ports]]
localPort = 41295
externalPort = 5173

View File

@ -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,