From fc167713559b7e2bfa47194902efa558e8fa5dd2 Mon Sep 17 00:00:00 2001 From: Mysterious_Dev <40738104+Mysterious-Dev@users.noreply.github.com> Date: Sat, 27 Jan 2024 18:37:35 +0100 Subject: [PATCH] Fix: Projects in collections have less tags shown that they have (#1599) * Fix: Projects in collections have less tags shown that they have * Fix lint error --- pages/collection/[id].vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/collection/[id].vue b/pages/collection/[id].vue index 4402f88d4..cd0fb91aa 100644 --- a/pages/collection/[id].vue +++ b/pages/collection/[id].vue @@ -531,7 +531,16 @@ try { () => useBaseFetch( `projects?ids=${encodeURIComponent(JSON.stringify(collection.value.projects))}` - ) + ), + { + transform: (projects) => { + for (const project of projects) { + project.categories = project.categories.concat(project.loaders) + } + + return projects + }, + } ), ]) }