From e2d09ab1383dc772a5f657662800e2019da03d65 Mon Sep 17 00:00:00 2001 From: kovakmedya Date: Thu, 7 May 2026 22:32:44 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20getPrefs=20sonucunu=20plain=20object'e?= =?UTF-8?q?=20=C3=A7evir=20(Server=E2=86=92Client=20prop=20hatas=C4=B1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(dashboard)/layout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx index 4f2ff30..27be959 100644 --- a/src/app/(dashboard)/layout.tsx +++ b/src/app/(dashboard)/layout.tsx @@ -17,7 +17,9 @@ export default async function DashboardLayout({ let themePrefs: ThemePrefs = {}; try { const { account } = await createSessionClient(); - themePrefs = await account.getPrefs(); + const raw = await account.getPrefs(); + // getPrefs returns an Appwrite prototype object — must be a plain object for Server→Client prop + themePrefs = JSON.parse(JSON.stringify(raw)) as ThemePrefs; } catch { // use defaults if prefs unavailable }