Fixed Bug 50858 - People. ‘Something went wrong.’ when following the back arrow from a blocked profile card

This commit is contained in:
Nikita Gopienko 2022-01-10 16:24:21 +03:00
parent 901d48b4f0
commit c7bb1a51d5

View File

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