From 5250c64be52aba29ea1bae5f76bf534c343281d7 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Wed, 10 Apr 2024 21:28:48 +0530 Subject: [PATCH] [WEB-937] fix: inbox issue hook render issue and code refactor (#4168) * fix: inbox issue hook render issue and code refactor * fix: inbox issue hook render issue and code refactor --- .../[workspaceSlug]/projects/[projectId]/inbox/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (