-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[WEB-3102]fix: transfer issue count #6379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
42240fc
1f51b24
78f9643
ff0a22a
2d77b39
78fcadb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -308,6 +308,14 @@ export class CycleIssues extends BaseIssuesStore implements ICycleIssues { | |||||||||||||||||||||||||||||||||||||||
| cycleId as string, | ||||||||||||||||||||||||||||||||||||||||
| payload | ||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||
| // update pending count | ||||||||||||||||||||||||||||||||||||||||
| runInAction(() => { | ||||||||||||||||||||||||||||||||||||||||
| if (this.rootIssueStore.cycleMap) | ||||||||||||||||||||||||||||||||||||||||
| set(this.rootIssueStore.cycleMap[cycleId], "pending_issues", { | ||||||||||||||||||||||||||||||||||||||||
| ...this.rootIssueStore.cycleMap[cycleId], | ||||||||||||||||||||||||||||||||||||||||
| pending_issues: 0, | ||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
| // update pending count | |
| runInAction(() => { | |
| if (this.rootIssueStore.cycleMap) | |
| set(this.rootIssueStore.cycleMap[cycleId], "pending_issues", { | |
| ...this.rootIssueStore.cycleMap[cycleId], | |
| pending_issues: 0, | |
| }); | |
| }); | |
| // update pending count | |
| runInAction(() => { | |
| try { | |
| const cycleMap = this.rootIssueStore.cycleMap; | |
| if (!cycleMap?.[cycleId]) return; | |
| set(cycleMap, [cycleId, "pending_issues"], 0); | |
| } catch (error) { | |
| console.error("Failed to update pending issues count:", error); | |
| } | |
| }); |
Uh oh!
There was an error while loading. Please reload this page.