Skip to content

Commit

Permalink
fix: (#205) 게시글의 카테고리 리스트에 ?를 붙혀 없어도 에러가 나지 않게 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilpop8663 committed Aug 3, 2023
1 parent 0c7aff3 commit 14259f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/common/Post/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Post({ postInfo, isPreview }: PostProps) {
return (
<S.Container>
<S.DetailLink to={`${PATH.POST}/${postId}`} $isPreview={isPreview}>
<S.Category>{category.map(category => category.name).join(' | ')}</S.Category>
<S.Category>{category?.map(category => category.name).join(' | ')}</S.Category>
<S.Title $isPreview={isPreview}>{title}</S.Title>
<S.Wrapper>
<span>{writer.nickname}</span>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/hooks/query/usePostList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const usePostList = (

return lastPage.pageNumber + 1;
},
suspense: true,
}
);

Expand Down

0 comments on commit 14259f2

Please sign in to comment.