diff --git a/apps/admin/app/studies/assignments/[studyDetailId]/_components/AssignmentHeader.tsx b/apps/admin/app/studies/assignments/[studyDetailId]/_components/AssignmentHeader.tsx index 4784c1db..d170b3b4 100644 --- a/apps/admin/app/studies/assignments/[studyDetailId]/_components/AssignmentHeader.tsx +++ b/apps/admin/app/studies/assignments/[studyDetailId]/_components/AssignmentHeader.tsx @@ -39,12 +39,14 @@ const AssignmentHeader = ({ assignment, disabled }: AssignmentHeaderProps) => { const { success } = await studyApi.createAssignment(studyDetailId, data); if (success) { revalidateTagByName(`${tags.assignments} ${studyDetailId.toString()}`); + revalidateTagByName(tags.assignments); onOpen(); } } else if (assignmentStatus === "OPEN") { const { success } = await studyApi.patchAssignment(studyDetailId, data); if (success) { revalidateTagByName(`${tags.assignments} ${studyDetailId.toString()}`); + revalidateTagByName(tags.assignments); onOpen(); } }