diff --git a/client/src/modules/CourseManagement/hooks/useExpelledStats.ts b/client/src/modules/CourseManagement/hooks/useExpelledStats.ts index 2fbebb813..77e81e517 100644 --- a/client/src/modules/CourseManagement/hooks/useExpelledStats.ts +++ b/client/src/modules/CourseManagement/hooks/useExpelledStats.ts @@ -16,7 +16,7 @@ export const useExpelledStats = (courseId?: number) => { const { runAsync: handleDelete, loading: isDeleting } = useRequest( async (id: string) => courseStatsApi.deleteExpelledStat(id), - { onSuccess: refresh }, + { onSuccess: refresh, manual: true }, ); return {