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;
|
||||
}, new Map());
|
||||
|
||||
groups.forEach(group => group.children = []);
|
||||
groups.forEach(group => {
|
||||
if (group.parentId) {
|
||||
const parent = index.get(group.parentId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user