Skip to content

Commit

Permalink
fix(fe): fix notice stage server error (#1765)
Browse files Browse the repository at this point in the history
* fix(fe): handle undefined for fixed notices

* chore(fe): delete spaces
  • Loading branch information
jihorobert authored Jul 3, 2024
1 parent 3f4e76c commit a94b344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/frontend/app/(main)/notice/_components/NoticeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export default async function NoticeTable({ search }: Props) {
fixedNoticesFetcher,
noticesFetcher
])

fixedNotices == undefined ? [] : fixedNotices

const currentPageData = fixedNotices.concat(notices)

return (
Expand Down

0 comments on commit a94b344

Please sign in to comment.