mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +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
|
formik.values.deliveries
|
||||||
?.map((d) => d.products.map((p) => p.product_qty).join(','))
|
?.map((d) => d.products.map((p) => p.product_qty).join(','))
|
||||||
.join('|'),
|
.join('|'),
|
||||||
|
formik.values.products?.map((p) => p.product_qty).join(','),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -1173,6 +1174,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
|
|||||||
deliveryQtyErrorShown,
|
deliveryQtyErrorShown,
|
||||||
type,
|
type,
|
||||||
formik.values.deliveries,
|
formik.values.deliveries,
|
||||||
|
formik.values.products,
|
||||||
getDeliveryQtyError,
|
getDeliveryQtyError,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user