Skip to content

Commit

Permalink
fix: (#355) 글 수정 페이지, usePostDetail에서 인수 부족 오류 해결 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
chsua authored and tjdtls690 committed Sep 12, 2023
1 parent 062188b commit 85b8967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/post/EditPost/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default function EditPost() {

const { postId } = useParams();

const { data } = usePostDetail(Number(postId));
//해당 페이지는 게스트는 접근할 수 없으므로 필수적으로 true
const { data } = usePostDetail(true, Number(postId));
const { mutate, isSuccess, isError, error } = useEditPost(Number(postId));

useEffect(() => {
Expand Down

0 comments on commit 85b8967

Please sign in to comment.