Skip to content

Commit

Permalink
chore: 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayjunyoung committed Jun 19, 2024
1 parent 86e7074 commit 3256309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitlio/app/editor/[portfolioId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export default function EditPage({ params }: EditPageProps) {
(portfolio) => portfolio.portfolio_id.toString() === portfolioId
);

if (!portfolio) {
router.push('/error'); // Redirect to an error page if the portfolio ID is not found
return;
}
//if (!portfolio) {
//router.push('/error'); // Redirect to an error page if the portfolio ID is not found
//return;
//}
//일치하는 포트폴리오 찾았으면 현재 포트폴리오로 세팅
setCurrentPortfolio(portfolio);

Expand Down
2 changes: 2 additions & 0 deletions gitlio/app/editor/_components/ShareModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default function ShareModal() {
const [portfolioUrl, setPortfolioUrl] = useState('');

useEffect(() => {
console.log('currentPortfolio:', currentPortfolio); // 로그 추가
console.log('portfolios:', portfolios); // 로그 추가
if (currentPortfolio && currentPortfolio.portfolio_id) {
const matchingPortfolio = portfolios.find(
(portfolio) => portfolio.portfolio_id === currentPortfolio.portfolio_id
Expand Down

0 comments on commit 3256309

Please sign in to comment.