[WEB-5829] fix: Intake open work count (#8547)
* fix: open intake count at sidebar header * chore: reverted inbox store arguments to core store * fix: intake count update
This commit is contained in:
parent
3a99ecf8f3
commit
4d1e6c499f
1 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,11 @@ export class InboxIssueStore implements IInboxIssueStore {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Update counts
|
||||||
|
const currentTotalResults = this.store.projectInbox.inboxIssuePaginationInfo?.total_results ?? 0;
|
||||||
|
const updatedCount = currentTotalResults > 0 ? currentTotalResults - 1 : currentTotalResults;
|
||||||
|
set(this.store.projectInbox, ["inboxIssuePaginationInfo", "total_results"], updatedCount);
|
||||||
|
|
||||||
// If issue accepted sync issue to local db
|
// If issue accepted sync issue to local db
|
||||||
if (status === EInboxIssueStatus.ACCEPTED) {
|
if (status === EInboxIssueStatus.ACCEPTED) {
|
||||||
const updatedIssue = { ...this.issue, ...inboxIssue.issue };
|
const updatedIssue = { ...this.issue, ...inboxIssue.issue };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue