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

This commit is contained in:
rahulramesha 2024-06-18 11:34:57 +05:30 committed by GitHub
parent 0e63128d45
commit 10e67144a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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