fix(invoices): serialize Appwrite rows before passing to client component
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user