Disabled exhaustive deps alert for useEffect functions for edit modals

This commit is contained in:
Keannu Bernasol 2023-12-03 00:04:03 +08:00
parent 48867a847c
commit 6783b02163
2 changed files with 2 additions and 0 deletions

View file

@ -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({

View file

@ -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({