Skip to content

Commit

Permalink
Merge pull request #407 from dappforce/fix-profile-posts-list
Browse files Browse the repository at this point in the history
Fix fetching of profile posts list
  • Loading branch information
samchuk-vlad authored Apr 19, 2024
2 parents d6a57cb + 4f70b60 commit fe51c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rtk/features/posts/postsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export const fetchProfilePosts = createAsyncThunk<
where: {
ownedByAccount: { id_eq: address },
AND: [{ space_isNull: false, isComment_eq: false, ...showHidden }],
OR: [{ space: { id_eq: spaceId }, ...showHidden }],
...(spaceId ? { OR: [{ space: { id_eq: spaceId }, ...showHidden }] } : {}),
},
})

Expand Down

0 comments on commit fe51c1d

Please sign in to comment.