Skip to content

Commit

Permalink
chore: workspace draft and inbox issue local db mutation (#6180)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Dec 10, 2024
1 parent 205395e commit 216a69f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/core/store/inbox/inbox-issue.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class InboxIssueStore implements IInboxIssueStore {

// If issue accepted sync issue to local db
if (status === EInboxIssueStatus.ACCEPTED) {
addIssueToPersistanceLayer(inboxIssue.issue);
addIssueToPersistanceLayer({ ...this.issue, ...inboxIssue.issue });
}
} catch {
runInAction(() => set(this, "status", previousData.status));
Expand Down
2 changes: 1 addition & 1 deletion web/core/store/issue/workspace-draft/issue.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class WorkspaceDraftIssues implements IWorkspaceDraftIssues {
}

// sync issue to local db
addIssueToPersistanceLayer(response);
addIssueToPersistanceLayer({ ...payload, ...response });

// Update draft issue count in workspaceUserInfo
this.updateWorkspaceUserDraftIssueCount(workspaceSlug, -1);
Expand Down

0 comments on commit 216a69f

Please sign in to comment.