Fix: 리뷰요청페이지에서 헤더 이동할 때 에러 수정

This commit is contained in:
정현조 2024-10-08 14:25:33 +09:00
parent f92d62e4c3
commit 07979296cf

View File

@ -19,7 +19,9 @@ export default function WorkspaceNavigation() {
const workspaces = workspacesResponse?.workspaceResponses || [];
const activeWorkspaceId = workspaceId ?? workspaces[0]?.id;
const activeProjectId: number = Number(location.pathname.split('/')[3] || '0');
const activeProjectId: number = location.pathname.includes('/request')
? 0
: Number(location.pathname.split('/')[3] || '0');
if (workspaces.length === 0) {
return <div></div>;