mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE): Remove min validation on supplier_id
This commit is contained in:
@@ -153,7 +153,6 @@ const DeliveryObjectSchema: Yup.ObjectSchema<DeliverySchema> = Yup.object({
|
|||||||
supplier_id: Yup.number()
|
supplier_id: Yup.number()
|
||||||
.optional()
|
.optional()
|
||||||
.nullable()
|
.nullable()
|
||||||
.min(1, 'Supplier wajib diisi!')
|
|
||||||
.typeError('Supplier harus berupa angka!'),
|
.typeError('Supplier harus berupa angka!'),
|
||||||
products: Yup.array()
|
products: Yup.array()
|
||||||
.of(DeliveryProductObjectSchema)
|
.of(DeliveryProductObjectSchema)
|
||||||
|
|||||||
Reference in New Issue
Block a user