Skip to content

Commit 3d68d7b

Browse files
committed
Fix: 오류 수정
1 parent 4d31d56 commit 3d68d7b

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

components/pages/mypage/MyPageMain/BookmarkedBoardsList/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default function BookmarkedBoardsList() {
5454
showModal={showModal}
5555
setShowModal={setShowModal}
5656
board={selectedBoard}
57-
comments={selectedBoard?.replyListDto}
5857
/>
5958
</>
6059
);

components/pages/mypage/MyPageMain/MyBoardsList/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export default function MyBoardsList() {
5555
showModal={showModal}
5656
setShowModal={setShowModal}
5757
board={selectedBoard}
58-
comments={selectedBoard?.replyListDto}
5958
/>
6059
</>
6160
);

components/ui/BoardCard/BoardCardPackage/CommentWrapper.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function BoardCardCommentWrapper({
8484
value={commentText}
8585
onChange={(event) => setCommentText(event.target.value)}
8686
/>
87-
<button type="button" onClick={() => postNewComment}>
87+
<button type="button" onClick={postNewComment}>
8888
<PaperPlaneIcon
8989
className={`w-8 h-8 ${
9090
isLoading ? 'fill-grey-300' : 'fill-primary-300'

hooks/mutations/usePostComment.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function usePostComment() {
1010
postComment(postCommentData),
1111
onSuccess: () => {
1212
Toast.success('댓글이 성공적으로 업로드 되었습니다.');
13+
queryClient.invalidateQueries(['boardList']);
1314
return queryClient.invalidateQueries(['commentList']);
1415
},
1516
onError: () => {

0 commit comments

Comments
 (0)