Fixed Bug 61060 - Accounts: Error in console Uncaught TypeError: "newData" is read-only when deselecting account

This commit is contained in:
Ilya Oleshko 2023-02-07 11:00:21 +03:00
parent 604bc27e88
commit 22eacf4fb8

View File

@ -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);
};