Fix group rename not working
This commit is contained in:
parent
37405cac60
commit
29bf7ee36b
@ -217,7 +217,7 @@ export function renameGroup(
|
||||
): Group[] {
|
||||
let newGroups = cloneDeep(groups);
|
||||
const groupIndex = newGroups.findIndex((group) => group.id === groupId);
|
||||
const group = groups[groupIndex];
|
||||
const group = newGroups[groupIndex];
|
||||
if (group.type !== "group") {
|
||||
throw new Error(`Unable to rename group ${groupId}, not of type group`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user