Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 54e9a44

Browse files
anmolsinghbhatianishantPFM
authored andcommitted
chore: workspace draft and inbox issue local db mutation (makeplane#6180)
1 parent 1f61bc2 commit 54e9a44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/core/store/inbox/inbox-issue.store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class InboxIssueStore implements IInboxIssueStore {
9898

9999
// If issue accepted sync issue to local db
100100
if (status === EInboxIssueStatus.ACCEPTED) {
101-
addIssueToPersistanceLayer(inboxIssue.issue);
101+
addIssueToPersistanceLayer({ ...this.issue, ...inboxIssue.issue });
102102
}
103103
} catch {
104104
runInAction(() => set(this, "status", previousData.status));

web/core/store/issue/workspace-draft/issue.store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export class WorkspaceDraftIssues implements IWorkspaceDraftIssues {
352352
}
353353

354354
// sync issue to local db
355-
addIssueToPersistanceLayer(response);
355+
addIssueToPersistanceLayer({ ...payload, ...response });
356356

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

0 commit comments

Comments
 (0)