From ce125df98f2577c1a33fe256706874b55c64c66f Mon Sep 17 00:00:00 2001 From: Pat Needham Date: Fri, 24 May 2024 17:14:20 -0400 Subject: [PATCH] fixed param --- .../users+/$username_+/artworks+/$artworkId/_index/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/users+/$username_+/artworks+/$artworkId/_index/route.tsx b/app/routes/users+/$username_+/artworks+/$artworkId/_index/route.tsx index 9964830b..11a6d6d2 100644 --- a/app/routes/users+/$username_+/artworks+/$artworkId/_index/route.tsx +++ b/app/routes/users+/$username_+/artworks+/$artworkId/_index/route.tsx @@ -33,7 +33,7 @@ export async function loader({ params, request }: LoaderFunctionArgs) { const artwork = await getArtworkWithProject({ where: { ownerId: userId, - id: params.artworkId, + slug: params.artworkId, }, }) invariantResponse(artwork, 'Not found', { status: 404 })