From a27edad81056a557ff8777c293b8d9e8ee389749 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Wed, 30 Aug 2023 20:35:10 +0530 Subject: [PATCH] fix: type fixes --- apps/space/components/views/project-details.tsx | 6 +++--- apps/space/store/issue.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/space/components/views/project-details.tsx b/apps/space/components/views/project-details.tsx index 81afb8013..b1a857b98 100644 --- a/apps/space/components/views/project-details.tsx +++ b/apps/space/components/views/project-details.tsx @@ -35,14 +35,14 @@ export const ProjectDetailsView = observer(() => { return (
- {/* {workspace_slug && ( + {workspace_slug && ( issueStore.setActivePeekOverviewIssueId(null)} + onClose={() => issueStore.setPeekId(null)} issue={issueStore?.issues?.find((_issue) => _issue.id === activeIssueId) || null} workspaceSlug={workspace_slug.toString()} /> - )} */} + )} {issueStore?.loader && !issueStore.issues ? (
Loading...
diff --git a/apps/space/store/issue.ts b/apps/space/store/issue.ts index d7a449066..c15a9a2e9 100644 --- a/apps/space/store/issue.ts +++ b/apps/space/store/issue.ts @@ -24,7 +24,7 @@ export interface IIssueStore { issueService: any; // actions fetchPublicIssues: (workspace_slug: string, project_slug: string, params: any) => void; - setPeekId: (issueId: string) => void; + setPeekId: (issueId: string | null) => void; getFilteredIssuesByState: (state: string) => IIssue[]; } @@ -98,7 +98,7 @@ class IssueStore implements IIssueStore { } }; - setPeekId = (issueId: string) => { + setPeekId = (issueId: string | null) => { this.peekId = issueId; };