From 32563090e216ccd9e2db181c908bbaa547bad0c9 Mon Sep 17 00:00:00 2001 From: Jayjunyoung Date: Wed, 19 Jun 2024 22:03:45 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=A3=BC=EC=84=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitlio/app/editor/[portfolioId]/page.tsx | 8 ++++---- gitlio/app/editor/_components/ShareModal.tsx | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gitlio/app/editor/[portfolioId]/page.tsx b/gitlio/app/editor/[portfolioId]/page.tsx index 4c1fc5b..1e60514 100644 --- a/gitlio/app/editor/[portfolioId]/page.tsx +++ b/gitlio/app/editor/[portfolioId]/page.tsx @@ -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); diff --git a/gitlio/app/editor/_components/ShareModal.tsx b/gitlio/app/editor/_components/ShareModal.tsx index 43ca482..042be67 100644 --- a/gitlio/app/editor/_components/ShareModal.tsx +++ b/gitlio/app/editor/_components/ShareModal.tsx @@ -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