Skip to content

Commit

Permalink
fix (SetInventoryForm): removed state.form from useEffect deps (#4086)
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Nov 20, 2022
1 parent 028eda4 commit 600a0b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Facility/SetInventoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const SetInventoryForm = (props: any) => {
setIsLoading(false);
}
},
[dispatchAction, state.form] // offset]
[dispatchAction]
);
useAbortableEffect(
(status: statusType) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/UpdateMinQuantity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const UpdateMinQuantity = (props: any) => {
setIsLoading(false);
}
},
[dispatchAction, facilityId, inventoryId, state.form]
[dispatchAction, facilityId, inventoryId]
);
useAbortableEffect(
(status: statusType) => {
Expand Down

0 comments on commit 600a0b2

Please sign in to comment.