Skip to content

Commit 621030a

Browse files
committed
moved router
1 parent c680dc4 commit 621030a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/classroom/[classroomId]/manage/buttons.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default function ClassroomManagementButtons({
7676
};
7777

7878
const deleteClassroomFunction = async () => {
79+
router.push(`/classroom`);
7980
startTransition(async () => {
8081
await deleteClassroom(classroomData.id);
8182
});
@@ -93,7 +94,7 @@ export default function ClassroomManagementButtons({
9394
// classroomId.toString()
9495
// );
9596
// redirect(delete_success)
96-
router.push(`/classroom`);
97+
9798
refreshClassrooms();
9899
};
99100

0 commit comments

Comments
 (0)