Prevent duplicate groups in the tree list #178
@ -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