diff --git a/apps/frontend/app/admin/problem/[problemId]/edit/_components/BelongedContestTable.tsx b/apps/frontend/app/admin/problem/[problemId]/edit/_components/BelongedContestTable.tsx index 524e29ec2..83490305c 100644 --- a/apps/frontend/app/admin/problem/[problemId]/edit/_components/BelongedContestTable.tsx +++ b/apps/frontend/app/admin/problem/[problemId]/edit/_components/BelongedContestTable.tsx @@ -24,7 +24,9 @@ export function BelongedContestTable({ const { data } = useSuspenseQuery(GET_BELONGED_CONTESTS, { variables: { problemId - } + }, + // TODO: 필요시 refetch 하도록 수정 + fetchPolicy: 'network-only' }) useEffect(() => { diff --git a/apps/frontend/app/admin/problem/[problemId]/edit/_components/ScoreCautionDialog.tsx b/apps/frontend/app/admin/problem/[problemId]/edit/_components/ScoreCautionDialog.tsx index c4664b8ce..85c6bed62 100644 --- a/apps/frontend/app/admin/problem/[problemId]/edit/_components/ScoreCautionDialog.tsx +++ b/apps/frontend/app/admin/problem/[problemId]/edit/_components/ScoreCautionDialog.tsx @@ -7,7 +7,6 @@ import { DialogHeader, DialogTitle } from '@/components/shadcn/dialog' -import { GET_BELONGED_CONTESTS } from '@/graphql/contest/queries' import { UPDATE_CONTEST_PROBLEMS_SCORES } from '@/graphql/problem/mutations' import { useMutation } from '@apollo/client' import { Suspense, useState } from 'react' @@ -30,15 +29,7 @@ export function ScoreCautionDialog({ problemId }: ScoreCautionDialogProps) { const [updateContestsProblemsScores] = useMutation( - UPDATE_CONTEST_PROBLEMS_SCORES, - { - refetchQueries: [ - { - query: GET_BELONGED_CONTESTS, - variables: { problemId } - } - ] - } + UPDATE_CONTEST_PROBLEMS_SCORES ) const [zeroSetContests, setZeroSetContests] = useState([])