Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-937] fix: inbox issue hook render issue and code refactor (#4168)

Anmol Singh Bhatia5250c64be52a
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/inbox/index.tsx
index 3bc636ba9c..350f51f336 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 (
<div className="flex h-full flex-col">
<PageHead title={pageTitle} />