Skip to content

Commit

Permalink
HOTFIX: 내가 좋아요 누른 게시글 응답 스미카 변경에 맞춰 수정
Browse files Browse the repository at this point in the history
- 배포전, 내가 좋아요 누른 게시글 응답 스키마가 변경되어, 급하게 수정합니다.
- data.article 에서 data로 변경
  • Loading branch information
Skyrich2000 committed Feb 27, 2022
1 parent 4bbdbfd commit 8b27b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/LikedArticlePage/Components/LikedArticle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const LikedArticle = () => {
// TODO: 나중에 페이지네이션 적용
const fetchLikeArticles = async () => {
const data = await UserService.getLikeArticles();
setArticles(data.map(data => data.article).reverse());
setArticles(data.reverse());
};

fetchLikeArticles();
Expand Down

0 comments on commit 8b27b6b

Please sign in to comment.