mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Allow null for document_path in schema
This commit is contained in:
@@ -133,7 +133,7 @@ const DeliveryObjectSchema: Yup.ObjectSchema<DeliverySchema> = Yup.object({
|
|||||||
(delivery_cost !== undefined && delivery_cost > 0)
|
(delivery_cost !== undefined && delivery_cost > 0)
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
document_path: Yup.string().optional(),
|
document_path: Yup.string().nullable().optional(),
|
||||||
document_index: Yup.number().optional(),
|
document_index: Yup.number().optional(),
|
||||||
document: Yup.mixed<File | MovementDocument>()
|
document: Yup.mixed<File | MovementDocument>()
|
||||||
.nullable()
|
.nullable()
|
||||||
|
|||||||
Reference in New Issue
Block a user