Skip to content

Commit bbd6542

Browse files
committed
ongroupclick fixes
1 parent afec155 commit bbd6542

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UI/web-app/src/components/HRQuerySource/HRQuerySource.base.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ const checkType = (value: string, type: string | undefined): string => {
15721572
};
15731573

15741574
if (allSameGroupIndex && groupIndices[0] === 0) {
1575+
if (clonedNewGroups[groupIndices[0]].items.length === selectedItems.length) { return; }
15751576
const newGroup: Group = {
15761577
name: "",
15771578
items: childItems,
@@ -1584,6 +1585,7 @@ const checkType = (value: string, type: string | undefined): string => {
15841585
}
15851586

15861587
else if (allSameGroupIndex && groupIndices[0] > 0) {
1588+
if (clonedNewGroups[groupIndices[0]].items.length === selectedItems.length) { return; }
15871589
clonedNewGroups[groupIndices[0]].children = [
15881590
...(clonedNewGroups[groupIndices[0]].children || []),
15891591
{

0 commit comments

Comments
 (0)