Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: no load improvement (#6375)

Anmol Singh Bhatia42e928138ce6
diff --git a/web/core/store/issue/issue.store.ts b/web/core/store/issue/issue.store.ts
index e5ba1b1079..5f40f2443e 100644
--- a/web/core/store/issue/issue.store.ts
+++ b/web/core/store/issue/issue.store.ts
@@ -1,3 +1,4 @@
+import clone from "lodash/clone";
import set from "lodash/set";
import update from "lodash/update";
import { action, makeObservable, observable, runInAction } from "mobx";
@@ -78,6 +79,7 @@ export class IssueStore implements IIssueStore {
*/
updateIssue = (issueId: string, issue: Partial<TIssue>) => {
if (!issue || !issueId || !this.issuesMap[issueId]) return;
+ const issueBeforeUpdate = clone(this.issuesMap[issueId]);
runInAction(() => {
set(this.issuesMap, [issueId, "updated_at"], getCurrentDateTimeInISO());
Object.keys(issue).forEach((key) => {
@@ -85,7 +87,7 @@ export class IssueStore implements IIssueStore {
});
});
- if (!this.issuesMap[issueId]?.is_epic) {
+ if (!issueBeforeUpdate.is_epic) {
updatePersistentLayer(issueId);
}
};