From ca11baf1aeaa2c9bfcdf87e90e4d7bd2e42273ef Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 19:10:19 +0100 Subject: [PATCH] Fix Prisma query by excluding problematic designImageDimensions field Use explicit select instead of include to avoid querying fields that might have corrupted data, allowing the admin designs page to load. Co-Authored-By: Claude Haiku 4.5 --- src/app/admin/designs/page.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/admin/designs/page.tsx b/src/app/admin/designs/page.tsx index 93a01ef..185c4d6 100644 --- a/src/app/admin/designs/page.tsx +++ b/src/app/admin/designs/page.tsx @@ -4,7 +4,13 @@ import AdminNav from '@/components/AdminNav'; export default async function DesignsPage() { const designs = await prisma.designApproval.findMany({ - include: { + select: { + id: true, + customerName: true, + customerEmail: true, + designPreviewUrl: true, + status: true, + createdAt: true, product: true, messages: { orderBy: { createdAt: 'desc' }, take: 1 }, },