From c7bb1a51d56d1cc781b5f536885d3c11cba2df70 Mon Sep 17 00:00:00 2001 From: gopienkonikita Date: Mon, 10 Jan 2022 16:24:21 +0300 Subject: [PATCH] =?UTF-8?q?Fixed=20Bug=2050858=20-=20People.=20=E2=80=98So?= =?UTF-8?q?mething=20went=20wrong.=E2=80=99=20when=20following=20the=20bac?= =?UTF-8?q?k=20arrow=20from=20a=20blocked=20profile=20card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/asc-web-common/components/FilterInput/FilterInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/asc-web-common/components/FilterInput/FilterInput.js b/packages/asc-web-common/components/FilterInput/FilterInput.js index 23e859ac68..009758c82b 100644 --- a/packages/asc-web-common/components/FilterInput/FilterInput.js +++ b/packages/asc-web-common/components/FilterInput/FilterInput.js @@ -240,7 +240,7 @@ class FilterInput extends React.Component { itemsState.map((item, index) => { if (item.group === "filter-group" && index !== -1) { const newGroup = filterValues.find((i) => i.group === "filter-group"); - updatedValues.splice(index, 1, newGroup); + newGroup && updatedValues.splice(index, 1, newGroup); } }); }