Skip to content

Commit

Permalink
(fix) O3-4208: Fix accessionNumber validation to be nullable on edi…
Browse files Browse the repository at this point in the history
…ting (#2119)

* fix: accessionNumber to nullable

* fix: keep nullable validation only

---------

Co-authored-by: Dennis Kigen <[email protected]>
  • Loading branch information
usamaidrsk and denniskigen authored Nov 28, 2024
1 parent 468170b commit b2d55a8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function LabOrderForm({
urgency: z.string().refine((value) => value !== '', {
message: translateFrom(moduleName, 'addLabOrderPriorityRequired', 'Priority is required'),
}),
accessionNumber: z.string().optional(),
accessionNumber: z.string().nullable(),
testType: z.object(
{ label: z.string(), conceptUuid: z.string() },
{
Expand Down Expand Up @@ -96,6 +96,7 @@ export function LabOrderForm({
mode: 'all',
resolver: zodResolver(labOrderFormSchema),
defaultValues: {
accessionNumber: null,
...initialOrder,
},
});
Expand Down

0 comments on commit b2d55a8

Please sign in to comment.