From 6783b02163fbe878f1f1386e314e504cfde2b312 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 3 Dec 2023 00:04:03 +0800 Subject: [PATCH] Disabled exhaustive deps alert for useEffect functions for edit modals --- src/Components/EditItemInstanceModal/EditItemInstanceModal.tsx | 1 + src/Components/EditSKUModal/EditSKUModal.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Components/EditItemInstanceModal/EditItemInstanceModal.tsx b/src/Components/EditItemInstanceModal/EditItemInstanceModal.tsx index 1ead57e..9fcc0f4 100644 --- a/src/Components/EditItemInstanceModal/EditItemInstanceModal.tsx +++ b/src/Components/EditItemInstanceModal/EditItemInstanceModal.tsx @@ -44,6 +44,7 @@ export default function EditItemInstanceModal(props: { status: equipment.data.status, }); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [equipment.data]); const update_mutation = useMutation({ diff --git a/src/Components/EditSKUModal/EditSKUModal.tsx b/src/Components/EditSKUModal/EditSKUModal.tsx index 713421e..35fed94 100644 --- a/src/Components/EditSKUModal/EditSKUModal.tsx +++ b/src/Components/EditSKUModal/EditSKUModal.tsx @@ -46,6 +46,7 @@ export default function EditSKUModal(props: { category: equipment.data.category, }); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [equipment.data]); const update_mutation = useMutation({