diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx index 3bc636ba9..350f51f33 100644 --- a/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx +++ b/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx @@ -25,8 +25,6 @@ const ProjectInboxPage: NextPageWithLayout = observer(() => { const { currentProjectDetails } = useProject(); const { currentTab, handleCurrentTab } = useProjectInbox(); - if (!workspaceSlug || !projectId) return <>>; - // No access to inbox if (currentProjectDetails?.inbox_view === false) return ( @@ -46,6 +44,8 @@ const ProjectInboxPage: NextPageWithLayout = observer(() => { handleCurrentTab(navigationTab === "open" ? EInboxIssueCurrentTab.OPEN : EInboxIssueCurrentTab.CLOSED); }, [currentTab, navigationTab, handleCurrentTab]); + if (!workspaceSlug || !projectId) return <>>; + return (