Fix: 리뷰요청페이지에서 헤더 이동할 때 에러 수정
This commit is contained in:
parent
f92d62e4c3
commit
07979296cf
@ -19,7 +19,9 @@ export default function WorkspaceNavigation() {
|
|||||||
const workspaces = workspacesResponse?.workspaceResponses || [];
|
const workspaces = workspacesResponse?.workspaceResponses || [];
|
||||||
|
|
||||||
const activeWorkspaceId = workspaceId ?? workspaces[0]?.id;
|
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) {
|
if (workspaces.length === 0) {
|
||||||
return <div></div>;
|
return <div></div>;
|
||||||
|
Loading…
Reference in New Issue
Block a user