Skip to content

Commit

Permalink
refactor: (#157) 불필요한 query key 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
inyeong-kang committed Jul 31, 2023
1 parent 1a92e6a commit c6f3c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/query/comment/useEditComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const useEditComment = (
updatedComment: CommentRequest
) => {
const queryClient = useQueryClient();
const queryKey = [QUERY_KEY.POSTS, postId, QUERY_KEY.COMMENTS, commentId];
const queryKey = [QUERY_KEY.POSTS, postId, QUERY_KEY.COMMENTS];

const { mutate, isLoading, isError, error } = useMutation(
() => editComment(postId, commentId, updatedComment),
Expand Down

0 comments on commit c6f3c77

Please sign in to comment.