.
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 1m47s

This commit is contained in:
ParkWonYeop
2025-12-28 01:35:05 +09:00
parent 45d7027fe8
commit 11817cd0c5

View File

@@ -42,8 +42,10 @@ export default function ArchivePage() {
return Object.keys(archiveGroups).sort((a, b) => Number(b) - Number(a));
}, [archiveGroups]);
// 총 게시글 수
const totalPosts = data?.totalElements || 0;
// 🛠️ 총 게시글 수 수정 (백엔드 PagedModel 대응)
// page 정보가 data 안에 직접 있거나, page 객체 안에 있을 수 있음
const meta = (data as any)?.page || data;
const totalPosts = meta?.totalElements || 0;
if (isLoading) {
return (