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
This commit is contained in:
Mysterious_Dev 2024-01-27 18:37:35 +01:00 committed by GitHub
parent 3ef3fbfd0e
commit fc16771355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
},
}
),
])
}