mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Include products in MovementForm effect deps
This commit is contained in:
@@ -1125,6 +1125,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
|
||||
formik.values.deliveries
|
||||
?.map((d) => d.products.map((p) => p.product_qty).join(','))
|
||||
.join('|'),
|
||||
formik.values.products?.map((p) => p.product_qty).join(','),
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -1173,6 +1174,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
|
||||
deliveryQtyErrorShown,
|
||||
type,
|
||||
formik.values.deliveries,
|
||||
formik.values.products,
|
||||
getDeliveryQtyError,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user