Skip to content

Commit

Permalink
Merge branch 'main' into user-story/migrate-authentication-functional…
Browse files Browse the repository at this point in the history
…ity-in-server
  • Loading branch information
maximilianruesch authored Nov 21, 2023
2 parents 70cc47e + b0a36f7 commit 8f6c591
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/CreateIssue/CreateIssueModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ export function CreateIssueModal({

const { data: assignableUsers } = useQuery({
queryKey: ["assignableUsers", form.getInputProps("projectId").value],
queryFn: () =>
getAssignableUsersByProject(form.getInputProps("projectId").value!),
queryFn: () => {
const relevantProject = projects
.find((project) => project.id === form.getInputProps("projectId").value!)!

return getAssignableUsersByProject(relevantProject.key)
},
enabled: !!projects && !!form.getInputProps("projectId").value,
})

Expand Down

0 comments on commit 8f6c591

Please sign in to comment.