From a94b344fcde7fb085a9ec7c78b92566791f7703b Mon Sep 17 00:00:00 2001 From: Jiho Park <59248080+jihorobert@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:01:46 +0900 Subject: [PATCH] fix(fe): fix notice stage server error (#1765) * fix(fe): handle undefined for fixed notices * chore(fe): delete spaces --- apps/frontend/app/(main)/notice/_components/NoticeTable.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/frontend/app/(main)/notice/_components/NoticeTable.tsx b/apps/frontend/app/(main)/notice/_components/NoticeTable.tsx index 8a944b81cf..ac7ff5cf70 100644 --- a/apps/frontend/app/(main)/notice/_components/NoticeTable.tsx +++ b/apps/frontend/app/(main)/notice/_components/NoticeTable.tsx @@ -48,6 +48,9 @@ export default async function NoticeTable({ search }: Props) { fixedNoticesFetcher, noticesFetcher ]) + + fixedNotices == undefined ? [] : fixedNotices + const currentPageData = fixedNotices.concat(notices) return (