Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic committed Aug 28, 2024
1 parent c96f069 commit cfcd83a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ export function OrderReceiveReturnForm({

const form = useForm<zod.infer<typeof ReceiveReturnSchema>>({
defaultValues: {
items: [],
items: previewItems
?.sort((i1, i2) => i1.id.localeCompare(i2.id))
.map((i) => ({
item_id: i.id,
})),
send_notification: false,
},
resolver: zodResolver(ReceiveReturnSchema),
Expand Down

0 comments on commit cfcd83a

Please sign in to comment.