Skip to content

Commit 1861f77

Browse files
committed
fix: ShowShareAccessModal에서 undefined 배열 map 호출 오류 해결
1 parent 01e9bbb commit 1861f77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apis/share.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export const getSharePostList = async (
4545
const response = await client.get('/api/share-posts', {
4646
params: { page, size },
4747
});
48-
console.log(`🌟공유 게시글 목록`, response.data);
48+
console.log(`🌟공유 게시글 목록`, response.data.data);
4949

50-
return response.data;
50+
return response.data.data;
5151
} catch (error) {
5252
console.error('❌ 편지 공유 게시글 목록을 조회하던 중 에러가 발생했습니다', error);
5353
throw new Error('편지 공유 게시글 목록 조회 실패');

0 commit comments

Comments
 (0)