File tree 4 files changed +2
-3
lines changed
ui/BoardCard/BoardCardPackage
4 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export default function BookmarkedBoardsList() {
54
54
showModal = { showModal }
55
55
setShowModal = { setShowModal }
56
56
board = { selectedBoard }
57
- comments = { selectedBoard ?. replyListDto }
58
57
/>
59
58
</ >
60
59
) ;
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ export default function MyBoardsList() {
55
55
showModal = { showModal }
56
56
setShowModal = { setShowModal }
57
57
board = { selectedBoard }
58
- comments = { selectedBoard ?. replyListDto }
59
58
/>
60
59
</ >
61
60
) ;
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export function BoardCardCommentWrapper({
84
84
value = { commentText }
85
85
onChange = { ( event ) => setCommentText ( event . target . value ) }
86
86
/>
87
- < button type = "button" onClick = { ( ) => postNewComment } >
87
+ < button type = "button" onClick = { postNewComment } >
88
88
< PaperPlaneIcon
89
89
className = { `w-8 h-8 ${
90
90
isLoading ? 'fill-grey-300' : 'fill-primary-300'
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default function usePostComment() {
10
10
postComment ( postCommentData ) ,
11
11
onSuccess : ( ) => {
12
12
Toast . success ( '댓글이 성공적으로 업로드 되었습니다.' ) ;
13
+ queryClient . invalidateQueries ( [ 'boardList' ] ) ;
13
14
return queryClient . invalidateQueries ( [ 'commentList' ] ) ;
14
15
} ,
15
16
onError : ( ) => {
You can’t perform that action at this time.
0 commit comments