[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:
Vamsi Krishna 2026-02-17 00:05:20 +05:30 committed by GitHub
parent 3a99ecf8f3
commit 4d1e6c499f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 (status === EInboxIssueStatus.ACCEPTED) {
const updatedIssue = { ...this.issue, ...inboxIssue.issue };