From 29bf7ee36b3f03f67258a192c4305a067b6d24dc Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 7 Aug 2021 10:29:45 +1000 Subject: [PATCH] Fix group rename not working --- src/helpers/group.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/group.ts b/src/helpers/group.ts index ccbd0d3..78124ff 100644 --- a/src/helpers/group.ts +++ b/src/helpers/group.ts @@ -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`); }