mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2025-12-13 01:24:44 -05:00
Add eslint-disable for useEffect dependency warning
This commit is contained in:
@@ -196,6 +196,7 @@ export default function InvoiceForm({ invoiceId }: InvoiceFormProps) {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Update the first line item when defaultHourlyRate changes (if it hasn't been manually edited)
|
// Update the first line item when defaultHourlyRate changes (if it hasn't been manually edited)
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps -- formData.items intentionally excluded to prevent infinite loop
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
formData.items.length === 1 &&
|
formData.items.length === 1 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user