Skip to content

Commit 98150fe

Browse files
#3959: add delete filtering
1 parent 0364f3c commit 98150fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/backend/src/prisma-query-args/projects.query-args.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const getProjectOverviewQueryArgs = (organizationId: string) =>
123123
manager: getUserQueryArgs(organizationId),
124124
status: true,
125125
links: getLinkQueryArgs(),
126-
tasks: getTaskQueryArgs(organizationId)
126+
tasks: { where: { dateDeleted: null }, ...getTaskQueryArgs(organizationId) }
127127
}
128128
},
129129
workPackages: getWorkPackagePreviewQueryArgs(),

src/frontend/src/components/ProjectDetailCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface ProjectDetailCardProps {
2323

2424
const ProjectDetailCard: React.FC<ProjectDetailCardProps> = ({ project, projectIsFavorited }) => {
2525
const containsActiveWorkPackages = project.workPackages.filter((wp) => wp.status === WbsElementStatus.Active).length;
26-
const tasksLeft: number = project.tasks.filter((task) => task.status !== TaskStatus.DONE).length;
26+
const tasksLeft: number = project.tasks.filter((task) => !task.dateDeleted && task.status !== TaskStatus.DONE).length;
2727

2828
const ProjectDetailCardTitle = () => (
2929
<Grid container alignItems="center">

0 commit comments

Comments
 (0)