From 22eacf4fb84f423c22ef9054dd207bf8b7b748da Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Tue, 7 Feb 2023 11:00:21 +0300 Subject: [PATCH] Fixed Bug 61060 - Accounts: Error in console Uncaught TypeError: "newData" is read-only when deselecting account --- packages/client/src/store/SelectionPeopleStore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/store/SelectionPeopleStore.js b/packages/client/src/store/SelectionPeopleStore.js index 74a12ed65a..89dc7fb859 100644 --- a/packages/client/src/store/SelectionPeopleStore.js +++ b/packages/client/src/store/SelectionPeopleStore.js @@ -49,7 +49,8 @@ class SelectionStore { if (!exists) return; const newData = [...this.selection]; - newData = this.selection.splice(index, 1); + + newData.splice(index, 1); this.setSelection(newData); };