diff --git a/webapp/src/components/VaultPage.tsx b/webapp/src/components/VaultPage.tsx index 88fd844..58a77cb 100644 --- a/webapp/src/components/VaultPage.tsx +++ b/webapp/src/components/VaultPage.tsx @@ -382,7 +382,9 @@ export default function VaultPage(props: VaultPageProps) { } const groupIndexByKey = new Map(); Array.from(groupKeys).sort().forEach((groupKey, index) => { - groupIndexByKey.set(groupKey, index % 64); + // Keep indices unique (no modulo): they are used both for group colors and + // as the group identity when selecting duplicate items to delete. + groupIndexByKey.set(groupKey, index); }); const byId = new Map(); for (const [cipherId, groupKey] of groupKeyById.entries()) {