From 9de86df07050727e742899fc551138ff7ba90df5 Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Fri, 1 Aug 2025 03:33:19 -0400 Subject: [PATCH] Fix edit invoice initialization and routing The form initialization logic for editing invoices was improved to handle route changes correctly. The edit link path was fixed and cache invalidation was added to ensure fresh data on navigation. --- src/app/dashboard/invoices/[id]/page.tsx | 2 +- src/components/forms/invoice-form.tsx | 83 ++++++++++++++---------- 2 files changed, 48 insertions(+), 37 deletions(-) diff --git a/src/app/dashboard/invoices/[id]/page.tsx b/src/app/dashboard/invoices/[id]/page.tsx index 3064583..8c7e9fd 100644 --- a/src/app/dashboard/invoices/[id]/page.tsx +++ b/src/app/dashboard/invoices/[id]/page.tsx @@ -131,7 +131,7 @@ function InvoiceViewContent({ invoiceId }: { invoiceId: string }) { >