Skip to content

Commit

Permalink
fix: Header title 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
han-kimm committed Jan 4, 2024
1 parent 0427812 commit 012df83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ const Header = ({ dashboardList }: HeaderProps) => {
return (
<header className={styles.header}>
<div className={styles.grid__title}>
{!!title || (
{title ? (
<h1 className={styles.boardname}>{title.length > 20 ? title.slice(0, 20) + "..." : title}</h1>
) : (
<h1 className={styles.welcome_message}>
{WELCOME_MESSAGE[Math.floor(Math.random() * WELCOME_MESSAGE.length)]}
</h1>
)}
{!!title && <h1 className={styles.boardname}>{title.length > 20 ? title.slice(0, 20) + "..." : title}</h1>}
</div>
{isOwner && (
<>
Expand Down
2 changes: 1 addition & 1 deletion pages/dashboard/[boardId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>

const {
data: { dashboards },
} = await sender.get({ path: "dashboards", method: "pagination", size: 13, accessToken: accessToken });
} = await sender.get({ path: "dashboards", method: "pagination", size: 999, accessToken: accessToken });

const boardId = context.query["boardId"];

Expand Down

0 comments on commit 012df83

Please sign in to comment.