mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
refactor(FE-114): remove optional product_warehouse_id validation from RecordingForm schema
This commit is contained in:
@@ -59,10 +59,6 @@ export const RecordingFormSchema = Yup.object({
|
||||
depletions: Yup.array()
|
||||
.of(
|
||||
Yup.object({
|
||||
product_warehouse_id: Yup.number()
|
||||
.optional()
|
||||
.min(1, 'Produk wajib diisi!')
|
||||
.typeError('Produk harus berupa angka!'),
|
||||
total: Yup.number()
|
||||
.required('Jumlah depletions wajib diisi!')
|
||||
.min(1, 'Jumlah depletions minimal 1!')
|
||||
@@ -110,7 +106,7 @@ export const getRecordingFormInitialValues = (
|
||||
) ?? [
|
||||
{
|
||||
weight: 0,
|
||||
qty: 1,
|
||||
qty: 0,
|
||||
average_weight: 0,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user