From 12397d409d376ea5e9708701b6c504ddbffcfde4 Mon Sep 17 00:00:00 2001 From: egecankomur Date: Thu, 14 May 2026 23:17:25 +0300 Subject: [PATCH] fix(invoices): serialize Appwrite rows before passing to client component --- src/app/(dashboard)/settings/billing/invoices/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/(dashboard)/settings/billing/invoices/page.tsx b/src/app/(dashboard)/settings/billing/invoices/page.tsx index 33cea7c..195a1fc 100644 --- a/src/app/(dashboard)/settings/billing/invoices/page.tsx +++ b/src/app/(dashboard)/settings/billing/invoices/page.tsx @@ -23,7 +23,8 @@ export default async function InvoicesPage() { if (ctx.role !== "owner") redirect("/dashboard"); - const events = await getPaymentHistoryAction(); + const rawEvents = await getPaymentHistoryAction(); + const events = JSON.parse(JSON.stringify(rawEvents)); const officeName = ctx.settings?.officeName ?? "Ofis"; return (