Merge pull request 'Prevent duplicate groups in the tree list' (#178) from fix-dup-groups into main
Reviewed-on: #178
This commit is contained in:
commit
0c05cf7661
@ -35,6 +35,7 @@ export default function GroupsTable({ groups, onUpdate, onEdit, onEditAffinities
|
|||||||
return acc;
|
return acc;
|
||||||
}, new Map());
|
}, new Map());
|
||||||
|
|
||||||
|
groups.forEach(group => group.children = []);
|
||||||
groups.forEach(group => {
|
groups.forEach(group => {
|
||||||
if (group.parentId) {
|
if (group.parentId) {
|
||||||
const parent = index.get(group.parentId);
|
const parent = index.get(group.parentId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user