Fix deleted website visibility bug

Closes #3865
This commit is contained in:
Francis Cao committed 2025-12-19 14:21:42 -08:00
1 parent 3072f02f1b
commit 912d2d544d
4 files changed
+19 -1

No files matched your search

+6
View File
@@ -1,8 +1,14 @@
import type { Metadata } from 'next';
import { getPixel } from '@/queries/prisma';
import { PixelPage } from './PixelPage';
export default async function ({ params }: { params: { pixelId: string } }) {
const { pixelId } = await params;
const pixel = await getPixel(pixelId);
if (!pixel || pixel?.deletedAt) {
return null;
}
return <PixelPage pixelId={pixelId} />;
}