From f0e6ff9425ec6ee7a2e3f1c44886be813024ed83 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 12 Jan 2025 23:14:50 +0100 Subject: [PATCH] Prevent duplicate groups in the tree list --- app/ui/groups/table.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/ui/groups/table.tsx b/app/ui/groups/table.tsx index 253c271..93e6d4b 100644 --- a/app/ui/groups/table.tsx +++ b/app/ui/groups/table.tsx @@ -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);