mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 06:09:25 +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,
|
status: equipment.data.status,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [equipment.data]);
|
}, [equipment.data]);
|
||||||
|
|
||||||
const update_mutation = useMutation({
|
const update_mutation = useMutation({
|
||||||
|
|
|
@ -46,6 +46,7 @@ export default function EditSKUModal(props: {
|
||||||
category: equipment.data.category,
|
category: equipment.data.category,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [equipment.data]);
|
}, [equipment.data]);
|
||||||
|
|
||||||
const update_mutation = useMutation({
|
const update_mutation = useMutation({
|
||||||
|
|
Loading…
Reference in a new issue