Web:Common:AdvancedSelector: add check if group index didn found
This commit is contained in:
parent
0ffb92d56e
commit
866b75eef6
@ -118,8 +118,10 @@ const Selector = (props) => {
|
||||
const groupIndex = newGroupList.findIndex(
|
||||
(newGroup) => group === newGroup.id
|
||||
);
|
||||
if (groupIndex) {
|
||||
newGroupList[groupIndex].selectedCount++;
|
||||
|
||||
if (groupIndex > -1) {
|
||||
newGroupList[groupIndex].selectedCount =
|
||||
newGroupList[groupIndex].selectedCount + 1;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user