Add eslint-disable for useEffect dependency warning

This commit is contained in:
2025-08-01 00:22:59 -04:00
parent e53d5944d0
commit e8fb8fa21c

View File

@@ -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 &&