mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-16 21:59:24 +08:00
Disabled exhaustive deps alert for useEffect functions for edit modals
This commit is contained in:
parent
48867a847c
commit
6783b02163
2 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue