Skip to content

Commit

Permalink
fix: 데이터타입 구조분해 할당
Browse files Browse the repository at this point in the history
  • Loading branch information
jiohjung98 committed Jan 25, 2025
1 parent 1b1538c commit 7db1b53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ const ArticleDetailClientWrapper = ({ articleId }: ArticleDetailClientWrapperPro
return <div>데이터를 가져오지 못했습니다.</div>;
}

const { articleDetail } = data;
const articleDetail = data?.articleDetail;
const { categoryName, title, createdAt, authorName, imgLink, text, paywallUp } = articleDetail;
console.log(categoryName);

const handleShare = async () => {
const shareUrl = `${window.location.origin}/learning/detail/${articleId}`;
Expand Down

0 comments on commit 7db1b53

Please sign in to comment.