From 600a0b214a84f2b117140a0b651a908188c0437d Mon Sep 17 00:00:00 2001 From: Khavin Shankar Date: Sun, 20 Nov 2022 16:12:27 +0530 Subject: [PATCH] fix (SetInventoryForm): removed state.form from useEffect deps (#4086) --- src/Components/Facility/SetInventoryForm.tsx | 2 +- src/Components/Facility/UpdateMinQuantity.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Facility/SetInventoryForm.tsx b/src/Components/Facility/SetInventoryForm.tsx index 6413af11c7a..83cda01dad2 100644 --- a/src/Components/Facility/SetInventoryForm.tsx +++ b/src/Components/Facility/SetInventoryForm.tsx @@ -67,7 +67,7 @@ export const SetInventoryForm = (props: any) => { setIsLoading(false); } }, - [dispatchAction, state.form] // offset] + [dispatchAction] ); useAbortableEffect( (status: statusType) => { diff --git a/src/Components/Facility/UpdateMinQuantity.tsx b/src/Components/Facility/UpdateMinQuantity.tsx index 1374ea2a249..bbf2fe273c3 100644 --- a/src/Components/Facility/UpdateMinQuantity.tsx +++ b/src/Components/Facility/UpdateMinQuantity.tsx @@ -66,7 +66,7 @@ export const UpdateMinQuantity = (props: any) => { setIsLoading(false); } }, - [dispatchAction, facilityId, inventoryId, state.form] + [dispatchAction, facilityId, inventoryId] ); useAbortableEffect( (status: statusType) => {