Dashboard: load teams before posts

cgen-4391d0a93f6f498f95f1fa1272124cb6
This commit is contained in:
Builder.io 2025-10-18 03:21:04 +00:00
parent bb4273a743
commit e031bb1485

View file

@ -335,6 +335,14 @@ export default function Dashboard() {
setProjects([]);
}
// Load teams
try {
const myTeams = await aethexCollabService.listMyTeams(user!.id);
setTeams(myTeams);
} catch (e) {
setTeams([]);
}
// Load user's recent posts
try {
const posts = await communityService.getUserPosts(user!.id);