Skip to content

Commit

Permalink
fix: change typeCode in edit form (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
ertugrulcan-ays authored Sep 26, 2024
2 parents 0b7fda1 + 89468c2 commit 663a015
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions apps/web/src/app/[lang]/app/[type]/customers/[id]/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ export default function Form({
values={{
localNumber: phoneNumber,
primaryFlag: telephoneInfo.primaryFlag,
typeCode:
telephone.properties.typeCode.enum[telephoneInfo.typeCode || 0],
typeCode: telephoneInfo.typeCode,
}}
>
<AutoFormSubmit className="float-right">
Expand All @@ -197,8 +196,7 @@ export default function Form({
fullAddress: addressInfo?.fullAddress,
postalCode: addressInfo?.postalCode,
terriority: addressInfo?.terriority,
typeCode:
address.properties.typeCode.enum[addressInfo?.typeCode || 0],
typeCode: addressInfo?.typeCode,
primaryFlag: addressInfo?.primaryFlag,
}}
>
Expand All @@ -223,8 +221,7 @@ export default function Form({
}}
values={{
emailAddress: emailInfo?.emailAddress,
typeCode:
email.properties.typeCode.enum[emailInfo?.typeCode || 0],
typeCode: emailInfo?.typeCode,
primaryFlag: emailInfo?.primaryFlag,
}}
>
Expand Down

0 comments on commit 663a015

Please sign in to comment.