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:
co-authored by
Claude
parent
ab744b411d
commit
083a912e91
@@ -372,6 +372,7 @@ export const useTeamJoinRequests = (teamId: string, enabled = true) => {
|
|||||||
user:users(id, email, fullname, avatar)
|
user:users(id, email, fullname, avatar)
|
||||||
`)
|
`)
|
||||||
.eq('team_id', teamId)
|
.eq('team_id', teamId)
|
||||||
|
.eq('status', 'pending')
|
||||||
.order('created_at', { ascending: false });
|
.order('created_at', { ascending: false });
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user