refactor(FE): Allow null for document_path in schema

This commit is contained in:
rstubryan
2026-01-07 18:11:12 +07:00
parent 319afa3faf
commit 0d6e229ee5
@@ -133,7 +133,7 @@ const DeliveryObjectSchema: Yup.ObjectSchema<DeliverySchema> = Yup.object({
(delivery_cost !== undefined && delivery_cost > 0)
);
}),
document_path: Yup.string().optional(),
document_path: Yup.string().nullable().optional(),
document_index: Yup.number().optional(),
document: Yup.mixed<File | MovementDocument>()
.nullable()