Skip to content

Commit

Permalink
fix(POR-12904): client home not loading for clients without custom fi…
Browse files Browse the repository at this point in the history
…elds
  • Loading branch information
makeitraina committed Jan 16, 2025
1 parent 8f0ceef commit 14b9feb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/client-preview/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ export default async function ClientPreviewPage({
}
}

for (const key of Object.keys(customFields)) {
if (customFields[key]?.fullAddress) {
customFields[key] = customFields[key].fullAddress
if (customFields) {
for (const key of Object.keys(customFields)) {
if (customFields[key]?.fullAddress) {
customFields[key] = customFields[key].fullAddress
}
}
}

Expand Down

0 comments on commit 14b9feb

Please sign in to comment.