Skip to content

Commit

Permalink
Fix : 빈배열 예외처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bianbbc87 committed May 16, 2024
1 parent 1c356de commit 730953a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/seminar/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const SeminarPage = async () => {
// open seminar 데이터 가져오기
const openSeminarResponse = await fetch(`${process.env.SERVER_HOST}/api/seminar/open`);
const openSeminar = await openSeminarResponse.json();
const openSeminars = refactorOpenSeminarData(openSeminar.data);
const openSeminars = refactorOpenSeminarData(openSeminar.data || []);

// 세미나 데이터
if (!seminars) {
Expand Down

0 comments on commit 730953a

Please sign in to comment.