diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/cycles/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/cycles/index.tsx index c1314b414..9df2357b8 100644 --- a/web/pages/[workspaceSlug]/projects/[projectId]/cycles/index.tsx +++ b/web/pages/[workspaceSlug]/projects/[projectId]/cycles/index.tsx @@ -28,7 +28,7 @@ const ProjectCyclesPage: NextPageWithLayout = observer(() => { const [createModal, setCreateModal] = useState(false); // store const { project: projectStore, cycle: cycleStore } = useMobxStore(); - const { currentProjectDetails } = projectStore; + const { projectCycles } = cycleStore // router const router = useRouter(); const { workspaceSlug, projectId, peekCycle } = router.query; @@ -73,6 +73,7 @@ const ProjectCyclesPage: NextPageWithLayout = observer(() => { const cycleView = cycleStore?.cycleView; const cycleLayout = cycleStore?.cycleLayout; + const totalCycles = projectCycles?.length ?? 0 if (!workspaceSlug || !projectId) return null; @@ -84,7 +85,7 @@ const ProjectCyclesPage: NextPageWithLayout = observer(() => { isOpen={createModal} handleClose={() => setCreateModal(false)} /> - {currentProjectDetails?.total_cycles === 0 ? ( + {totalCycles === 0 ? (