Add tags and categories
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function ArtworkSinglePage({ params }: { params: { id: stri
|
||||
}
|
||||
})
|
||||
|
||||
const categories = await prisma.artCategory.findMany({ orderBy: { sortIndex: "asc" } });
|
||||
const categories = await prisma.artCategory.findMany({ include: { tags: true }, orderBy: { sortIndex: "asc" } });
|
||||
const tags = await prisma.artTag.findMany({ orderBy: { sortIndex: "asc" } });
|
||||
|
||||
if (!item) return <div>Artwork with this id not found</div>
|
||||
|
||||
Reference in New Issue
Block a user