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.

fix the bug that incorrectly updates issue store for array properties during bulk ops (#4849)

rahulramesha10e67144a098
diff --git a/web/core/store/issue/helpers/base-issues.store.ts b/web/core/store/issue/helpers/base-issues.store.ts
index 7e04642281..2edb11735b 100644
--- a/web/core/store/issue/helpers/base-issues.store.ts
+++ b/web/core/store/issue/helpers/base-issues.store.ts
@@ -804,7 +804,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
// convert existing value to an array
const newExistingValue = Array.isArray(existingValue) ? existingValue : [];
this.rootIssueStore.issues.updateIssue(issueId, {
- [property]: uniq([newExistingValue, ...propertyValue]),
+ [property]: uniq([...newExistingValue, ...propertyValue]),
});
} else {
// if property value is not an array, simply update the value