Skip to content

Commit

Permalink
Rename variable in create issue modal
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianruesch committed Nov 21, 2023
1 parent 77b04c9 commit 3f09c54
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/CreateIssue/CreateIssueModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export function CreateIssueModal({
const { data: assignableUsers } = useQuery({
queryKey: ["assignableUsers", form.getInputProps("projectId").value],
queryFn: () => {
const pp = projects.find((project) => project.id === form.getInputProps("projectId").value!)!
const relevantProject = projects
.find((project) => project.id === form.getInputProps("projectId").value!)!

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

0 comments on commit 3f09c54

Please sign in to comment.