Skip to content

Commit

Permalink
refactor: 메인 페이지 아이템 첫 로드시에도 랜더되지 않도록 분기 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Creative-Lee committed Sep 21, 2023
1 parent 94b57a3 commit b8c73ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/features/songs/components/SongItemList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface SongItemListProps {
const SongItemList = ({ genre }: SongItemListProps) => {
const { data: songs } = useFetch<Song[]>(() => getHighLikedSongs(genre));

if (songs?.length === 0) return;
if (songs === null || songs?.length === 0) return;

return (
<>
Expand Down

0 comments on commit b8c73ad

Please sign in to comment.