fix: filter join requests to only show pending status
Previously approved/rejected requests were still showing in the list. Now only pending requests are displayed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
ab744b411d
commit
083a912e91
1 file changed
+1
@@ -372,6 +372,7 @@ export const useTeamJoinRequests = (teamId: string, enabled = true) => {
|
||||
user:users(id, email, fullname, avatar)
|
||||
`)
|
||||
.eq('team_id', teamId)
|
||||
.eq('status', 'pending')
|
||||
.order('created_at', { ascending: false });
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in new issue
Block a user