Fix missing categories and environments on orgs and following collection (#1667)

This commit is contained in:
Prospector
2024-04-09 11:20:41 -07:00
committed by GitHub
parent 4c2565826f
commit 5f85af76cd
2 changed files with 39 additions and 3 deletions

View File

@@ -510,8 +510,18 @@ try {
updated: auth.value.user.created,
})
;[{ data: projects, refresh: refreshProjects }] = await Promise.all([
useAsyncData(`user/${auth.value.user.id}/follows`, () =>
useBaseFetch(`user/${auth.value.user.id}/follows`)
useAsyncData(
`user/${auth.value.user.id}/follows`,
() => useBaseFetch(`user/${auth.value.user.id}/follows`),
{
transform: (projects) => {
for (const project of projects) {
project.categories = project.categories.concat(project.loaders)
}
return projects
},
}
),
])
creator = ref(auth.value.user)