Skip to content

Commit

Permalink
fix: removed regimen from mandatory fields on program mapping form
Browse files Browse the repository at this point in the history
  • Loading branch information
ericchingalo committed Jul 2, 2024
1 parent 038aa76 commit 8dfcc11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ const schema = z.object({
phoneNumber: z
.string({ required_error: "Phone Number attribute is required" })
.nonempty("Phone Number attribute is required"),
regimen: z
.string({ required_error: "Regimen attribute is required" })
.nonempty("Regimen attribute is required"),
regimen: z.string({ required_error: "Regimen attribute is required" }),
deviceIMEInumber: z.string().optional(),
episodeId: z.string().optional(),
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function RegimenTable({
.map((mapping: any) => {
return mapping.attributes.regimen ===
attribute?.attributeId ||
mapping.regimenDataElements.includes(
mapping.regimenDataElements?.includes(
attribute?.attributeId,
)
? mapping.name
Expand Down

0 comments on commit 8dfcc11

Please sign in to comment.