Dashboard: load teams before posts
cgen-4391d0a93f6f498f95f1fa1272124cb6
This commit is contained in:
parent
bb4273a743
commit
e031bb1485
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue