fix: addIssue function logic (#3467)

This commit is contained in:
Aaryan Khandelwal 2024-01-25 14:09:52 +05:30 committed by GitHub
parent 7f2e99dd2d
commit e4a3d0db5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -18,5 +18,6 @@ export type TDropdownProps = {
placeholder?: string;
placement?: Placement;
tabIndex?: number;
// TODO: rename this prop to showTooltip
tooltip?: boolean;
};

View File

@ -90,6 +90,7 @@ export class IssueStore implements IIssueStore {
this.rootIssueDetailStore.relation.fetchRelations(workspaceSlug, projectId, issueId);
// fetching states
// TODO: check if this function is required
this.rootIssueDetailStore.rootIssueStore.state.fetchProjectStates(workspaceSlug, projectId);
return issue;

View File

@ -43,7 +43,7 @@ export class IssueStore implements IIssueStore {
if (issues && issues.length <= 0) return;
runInAction(() => {
issues.forEach((issue) => {
set(this.issuesMap, issue.id, issue);
if (!this.issuesMap[issue.id]) set(this.issuesMap, issue.id, issue);
});
});
};