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