fix(invoices): serialize Appwrite rows before passing to client component

This commit is contained in:
egecankomur
2026-05-14 23:17:25 +03:00
parent 7660901eb0
commit 12397d409d
@@ -23,7 +23,8 @@ export default async function InvoicesPage() {
if (ctx.role !== "owner") redirect("/dashboard"); 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"; const officeName = ctx.settings?.officeName ?? "Ofis";
return ( return (