Skip to content

Commit

Permalink
fix: make projects filterable on primaryManagers
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Nov 28, 2022
1 parent 4ba01af commit 6af1eab
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions app/pages/cif/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,7 @@ export const ProjectsQuery = graphql`
projectStatusByProjectStatusId: {
name: { includesInsensitive: $status }
}
projectManagersByProjectId: {
some: {
and: {
cifUserByCifUserId: {
fullName: { includesInsensitive: $primaryProjectManager }
}
projectManagerLabelByProjectManagerLabelId: {
label: { includesInsensitive: "primary" }
}
}
}
}
primaryManagers: { includesInsensitive: $primaryProjectManager }
}
orderBy: $orderBy
) {
Expand Down Expand Up @@ -108,7 +97,6 @@ export function Projects({ preloadedQuery }: RelayProps<{}, projectsQuery>) {
session,
} = usePreloadedQuery(ProjectsQuery, preloadedQuery);
const router = useRouter();

const tableFilters = useMemo(
() => [
new TextFilter("Project Name", "projectName"),
Expand Down

0 comments on commit 6af1eab

Please sign in to comment.