fix: issue store sub issue retrieve project id (#4588)

This commit is contained in:
Anmol Singh Bhatia 2024-05-24 21:14:34 +05:30 committed by GitHub
parent 99e3097122
commit f76ca5643e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,8 +111,8 @@ export class IssueStore implements IIssueStore {
// store handlers from issue detail
// parent
if (issue && issue?.parent && issue?.parent?.id) {
const parentIssue = await this.issueService.retrieve(workspaceSlug, projectId, issue?.parent?.id);
if (issue && issue?.parent && issue?.parent?.id && issue?.parent?.project_id) {
const parentIssue = await this.issueService.retrieve(workspaceSlug, issue.parent.project_id, issue?.parent?.id);
this.rootIssueDetailStore.rootIssueStore.issues.addIssue([parentIssue]);
}
// assignees