Filter award juror selection to show only JURY_MEMBER role
Build and Push Docker Image / build (push) Successful in 8m57s
Details
Build and Push Docker Image / build (push) Successful in 8m57s
Details
The dropdown was showing all users instead of only jury members. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
e2782b2b19
commit
e1968d45df
|
|
@ -77,7 +77,7 @@ export default function AwardDetailPage({
|
||||||
trpc.specialAward.listJurors.useQuery({ awardId })
|
trpc.specialAward.listJurors.useQuery({ awardId })
|
||||||
const { data: voteResults } =
|
const { data: voteResults } =
|
||||||
trpc.specialAward.getVoteResults.useQuery({ awardId })
|
trpc.specialAward.getVoteResults.useQuery({ awardId })
|
||||||
const { data: allUsers } = trpc.user.list.useQuery({ page: 1, perPage: 100 })
|
const { data: allUsers } = trpc.user.list.useQuery({ role: 'JURY_MEMBER', page: 1, perPage: 100 })
|
||||||
|
|
||||||
const updateStatus = trpc.specialAward.updateStatus.useMutation()
|
const updateStatus = trpc.specialAward.updateStatus.useMutation()
|
||||||
const runEligibility = trpc.specialAward.runEligibility.useMutation()
|
const runEligibility = trpc.specialAward.runEligibility.useMutation()
|
||||||
|
|
@ -383,7 +383,7 @@ export default function AwardDetailPage({
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
<Select value={selectedJurorId} onValueChange={setSelectedJurorId}>
|
<Select value={selectedJurorId} onValueChange={setSelectedJurorId}>
|
||||||
<SelectTrigger className="w-64">
|
<SelectTrigger className="w-64">
|
||||||
<SelectValue placeholder="Select a member..." />
|
<SelectValue placeholder="Select a juror..." />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{availableUsers.map((u) => (
|
{availableUsers.map((u) => (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue