diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index d268bb6..84bb8b2 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -306,7 +306,8 @@ const fetchComments = async (page = 1) => { createdAtRaw: new Date(comment.LOCCMTRDT), // 정렬용 createdAt: formattedDate(comment.LOCCMTRDT), // 표시용 children: [], // 대댓글을 담을 배열 - updateAtRaw: new Date(comment.LOCCMTUDT), + updateAtRaw: comment.LOCCMTUDT, + })); commentsList.sort((a, b) => b.createdAtRaw - a.createdAtRaw);