File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ export function useFollowSpace(spaceId: any = {}) {
18
18
const loadingFollow = ref ( '' ) ;
19
19
20
20
const followingSpaces = computed ( ( ) =>
21
- following . value . map ( ( f : any ) => f . space . id )
21
+ Array . isArray ( following . value )
22
+ ? following . value . map ( ( f : any ) => f . space . id )
23
+ : [ ]
22
24
) ;
23
25
24
26
const isFollowing = computed ( ( ) =>
Original file line number Diff line number Diff line change @@ -35,9 +35,12 @@ const isFeedJoinedSpaces = computed(
35
35
);
36
36
37
37
async function getProposals(skip = 0 ) {
38
- if (! web3Account .value && isFeedJoinedSpaces .value ) return [];
38
+ if (
39
+ isFeedJoinedSpaces .value &&
40
+ (! web3Account .value || followingSpaces .value .length < 1 )
41
+ )
42
+ return [];
39
43
const spaces = isFeedJoinedSpaces .value ? followingSpaces .value : undefined ;
40
- if (! spaces ?.length ) return [];
41
44
const verified = route .query .feed === ' all' ? true : undefined ;
42
45
43
46
return (
You can’t perform that action at this time.
0 commit comments