From c85c3bb0d71a3d939e8503dac182f9766aeff407 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Fri, 8 Nov 2024 18:03:00 -0500 Subject: [PATCH] minor fix --- lib/api/controllers/tags/getTags.ts | 5 ----- pages/public/collections/[id].tsx | 11 ++--------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/lib/api/controllers/tags/getTags.ts b/lib/api/controllers/tags/getTags.ts index 21d1df36..61ef0913 100644 --- a/lib/api/controllers/tags/getTags.ts +++ b/lib/api/controllers/tags/getTags.ts @@ -62,11 +62,6 @@ export default async function getTags({ }, }, }, - include: { - _count: { - select: { links: true }, - }, - }, }); return { response: tags, status: 200 }; diff --git a/pages/public/collections/[id].tsx b/pages/public/collections/[id].tsx index 95adcd66..e07ec8dd 100644 --- a/pages/public/collections/[id].tsx +++ b/pages/public/collections/[id].tsx @@ -252,11 +252,7 @@ export default function PublicCollections() { : "bg-neutral-content/20 hover:bg-neutral/20" } duration-100 py-1 px-2 cursor-pointer flex items-center gap-2 rounded-md h-8`} > - -

{t("all_links")}

-
- {collection._count?.links} -
+

{t("all_links")}

{tags @@ -279,10 +275,7 @@ export default function PublicCollections() { } duration-100 py-1 px-2 cursor-pointer flex items-center gap-2 rounded-md h-8`} > -

{e}

-
- {tags.filter((t) => t.name === e)[0]._count.links} -
+

{e}

);