Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: addIssue function logic (#3467)

Aaryan Khandelwale4a3d0db5c75
diff --git a/web/components/dropdowns/types.d.ts b/web/components/dropdowns/types.d.ts
index f9a0783824..b99369022f 100644
--- a/web/components/dropdowns/types.d.ts
+++ b/web/components/dropdowns/types.d.ts
@@ -18,5 +18,6 @@ export type TDropdownProps = {
placeholder?: string;
placement?: Placement;
tabIndex?: number;
+ // TODO: rename this prop to showTooltip
tooltip?: boolean;
};
diff --git a/web/store/issue/issue-details/issue.store.ts b/web/store/issue/issue-details/issue.store.ts
index bc34af0f61..284e5d2011 100644
--- a/web/store/issue/issue-details/issue.store.ts
+++ b/web/store/issue/issue-details/issue.store.ts
@@ -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;
diff --git a/web/store/issue/issue.store.ts b/web/store/issue/issue.store.ts
index f31c8f2f66..8ee689daf3 100644
--- a/web/store/issue/issue.store.ts
+++ b/web/store/issue/issue.store.ts
@@ -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);
});
});
};