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:
parent
5017532439
commit
17b1969255
4
.replit
4
.replit
@ -19,10 +19,6 @@ externalPort = 80
|
|||||||
localPort = 33035
|
localPort = 33035
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
|
|
||||||
[[ports]]
|
|
||||||
localPort = 33963
|
|
||||||
externalPort = 6000
|
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41295
|
localPort = 41295
|
||||||
externalPort = 5173
|
externalPort = 5173
|
||||||
|
|||||||
@ -219,7 +219,7 @@ export default function Sites() {
|
|||||||
setEditingSite(site);
|
setEditingSite(site);
|
||||||
editForm.reset({
|
editForm.reset({
|
||||||
name: site.name,
|
name: site.name,
|
||||||
address: site.address,
|
address: site.address || "",
|
||||||
latitude: site.latitude || "",
|
latitude: site.latitude || "",
|
||||||
longitude: site.longitude || "",
|
longitude: site.longitude || "",
|
||||||
customerId: site.customerId ?? undefined,
|
customerId: site.customerId ?? undefined,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user