Skip to content

Commit 5d52b3b

Browse files
committed
hotfix: cache 중복 오류 해결
1 parent 60920e6 commit 5d52b3b

File tree

1 file changed

+1
-1
lines changed
  • src/components/auth-required/main/Section

1 file changed

+1
-1
lines changed

src/components/auth-required/main/Section/Graph.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const Graph = ({ id, releasedAt }: IProp) => {
5555
const [mode, setMode] = useState<ModeType>('none');
5656

5757
const { data: datas } = useQuery({
58-
queryKey: [PATHS.DETAIL, type],
58+
queryKey: [PATHS.DETAIL, type, id],
5959
queryFn: async () => await postDetail(id, type.start, type.end),
6060
select: ({ post }) => {
6161
post = post.sort(

0 commit comments

Comments
 (0)