forked from github/plane
fix: addIssue function logic (#3467)
This commit is contained in:
parent
7f2e99dd2d
commit
e4a3d0db5c
1
web/components/dropdowns/types.d.ts
vendored
1
web/components/dropdowns/types.d.ts
vendored
@ -18,5 +18,6 @@ export type TDropdownProps = {
|
|||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
placement?: Placement;
|
placement?: Placement;
|
||||||
tabIndex?: number;
|
tabIndex?: number;
|
||||||
|
// TODO: rename this prop to showTooltip
|
||||||
tooltip?: boolean;
|
tooltip?: boolean;
|
||||||
};
|
};
|
||||||
|
@ -90,6 +90,7 @@ export class IssueStore implements IIssueStore {
|
|||||||
this.rootIssueDetailStore.relation.fetchRelations(workspaceSlug, projectId, issueId);
|
this.rootIssueDetailStore.relation.fetchRelations(workspaceSlug, projectId, issueId);
|
||||||
|
|
||||||
// fetching states
|
// fetching states
|
||||||
|
// TODO: check if this function is required
|
||||||
this.rootIssueDetailStore.rootIssueStore.state.fetchProjectStates(workspaceSlug, projectId);
|
this.rootIssueDetailStore.rootIssueStore.state.fetchProjectStates(workspaceSlug, projectId);
|
||||||
|
|
||||||
return issue;
|
return issue;
|
||||||
|
@ -43,7 +43,7 @@ export class IssueStore implements IIssueStore {
|
|||||||
if (issues && issues.length <= 0) return;
|
if (issues && issues.length <= 0) return;
|
||||||
runInAction(() => {
|
runInAction(() => {
|
||||||
issues.forEach((issue) => {
|
issues.forEach((issue) => {
|
||||||
set(this.issuesMap, issue.id, issue);
|
if (!this.issuesMap[issue.id]) set(this.issuesMap, issue.id, issue);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user