From 4cd744f10c45d47765a595c283c7d55d183f9405 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 29 Mar 2026 21:26:16 -0700 Subject: [PATCH] fix: resolve Prisma Event type conflict with global DOM Event - Renamed Event import to EventModel to avoid conflict with global DOM Event interface - Updated type assertion to use EventModel[] --- src/app/admin/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 1542c8e..7e2b6b0 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -3,7 +3,7 @@ import Navigation from "@/components/Navigation" import Link from "next/link" import { redirect } from "next/navigation" import { getSession } from "@/lib/auth-simple" -import { Event } from "@prisma/client" +import type { Event as EventModel } from "@prisma/client" export default async function AdminDashboard() { console.log('AdminDashboard rendering...') @@ -54,7 +54,7 @@ export default async function AdminDashboard() { take: 5, orderBy: { createdAt: "desc" }, }), - ]) as [number, number, number, Event[]] + ]) as [number, number, number, EventModel[]] return (