From e8fb8fa21cde3e771579bc32b9880b0238d8085b Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Fri, 1 Aug 2025 00:22:59 -0400 Subject: [PATCH] Add eslint-disable for useEffect dependency warning --- src/components/forms/invoice-form.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/forms/invoice-form.tsx b/src/components/forms/invoice-form.tsx index ee0de32..a0af9f4 100644 --- a/src/components/forms/invoice-form.tsx +++ b/src/components/forms/invoice-form.tsx @@ -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) + // eslint-disable-next-line react-hooks/exhaustive-deps -- formData.items intentionally excluded to prevent infinite loop useEffect(() => { if ( formData.items.length === 1 &&