From 10e67144a0984b88563d22d6aee254254cee32a4 Mon Sep 17 00:00:00 2001 From: rahulramesha <71900764+rahulramesha@users.noreply.github.com> Date: Tue, 18 Jun 2024 11:34:57 +0530 Subject: [PATCH] fix the bug that incorrectly updates issue store for array properties during bulk ops (#4849) --- web/core/store/issue/helpers/base-issues.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/store/issue/helpers/base-issues.store.ts b/web/core/store/issue/helpers/base-issues.store.ts index 7e0464228..2edb11735 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