jam411 il y a 3 ans
Parent
commit
d0eedd5f4a

+ 2 - 1
packages/app/src/components/Admin/UserGroupDetail/UserGroupDetailPage.tsx

@@ -176,11 +176,12 @@ const UserGroupDetailPage = (props: Props): JSX.Element => {
       await apiv3Post(`/user-groups/${currentUserGroupId}/users/${username}`);
       setIsUserGroupUserModalShown(false);
       mutateUserGroupRelations();
+      mutateUserGroupRelationList();
     }
     catch (err) {
       toastError(new Error(`Unable to add "${username}" from "${currentUserGroup?.name}"`));
     }
-  }, [currentUserGroup?.name, currentUserGroupId, mutateUserGroupRelations]);
+  }, [currentUserGroup?.name, currentUserGroupId, mutateUserGroupRelationList, mutateUserGroupRelations]);
 
   // Fix: invalid csrf token => https://redmine.weseek.co.jp/issues/102704
   const removeUserByUsername = useCallback(async(username: string) => {