Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 73732cc

Browse files
author
dengjun
committed
sub community list
1 parent 976ae81 commit 73732cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/services/lookup.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ async function doGetUserGroups() {
3636
}
3737

3838
async function getCommunityList() {
39+
const isLoggedIn = await utils.auth.isLoggedIn();
40+
41+
if (!isLoggedIn) {
42+
return [];
43+
}
44+
3945
const groups = await doGetUserGroups();
4046
let communityListQuery = qs.stringify({ groups: groups.map((g) => g.id) });
4147
communityListQuery = communityListQuery

0 commit comments

Comments
 (0)